ci: updated workflow

This commit is contained in:
Marvin Zhang
2024-10-23 18:03:18 +08:00
parent 331d388a78
commit 1b68b959fb

View File

@@ -178,9 +178,10 @@ jobs:
- name: Update Dockerfile
run: |
for name in crawlab-backend crawlab-frontend; do
IMAGE_NAME=ghcr.io/crawlab-team/crawlab/$name
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/$name
sed -i "s|crawlabteam/${name}:latest|${IMAGE_NAME}:${{ needs.setup.outputs.image_hash }}|" Dockerfile
done
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -210,7 +211,7 @@ jobs:
--health-timeout 5s
--health-retries 5
crawlab:
image: ghcr.io/${{ github.repository }}:${{ needs.setup.outputs.image_hash }}
image: ghcr.io/${{ github.repository_owner }}/crawlab:${{ needs.setup.outputs.image_hash }}
env:
CRAWLAB_NODE_MASTER: Y
CRAWLAB_MONGO_HOST: mongo
@@ -295,8 +296,8 @@ jobs:
matrix:
image: [
{ name: 'crawlab' },
{ name: 'crawlab/crawlab-backend' },
{ name: 'crawlab/crawlab-frontend' }
{ name: 'crawlab-backend' },
{ name: 'crawlab-frontend' }
]
steps:
- name: List Docker image versions