From a7d1cff6ccd473fa789b86bf54f99b5ce2609667 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 23 Oct 2024 17:38:52 +0800 Subject: [PATCH] ci: updated workflow --- .github/workflows/docker-crawlab.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-crawlab.yml b/.github/workflows/docker-crawlab.yml index f59c96d5..61636cd5 100644 --- a/.github/workflows/docker-crawlab.yml +++ b/.github/workflows/docker-crawlab.yml @@ -294,7 +294,7 @@ jobs: docker push ${{ (matrix.registry == 'dockerhub' && env.IMAGE_NAME_CRAWLAB_DOCKERHUB) || (matrix.registry == 'tencent' && env.IMAGE_NAME_CRAWLAB_TENCENT) }}:${{ needs.setup.outputs.version }} cleanup: - needs: [setup, push_images] + needs: [setup, build_backend, build_frontend, build_crawlab, push_images] if: always() runs-on: ubuntu-latest strategy: @@ -306,6 +306,8 @@ jobs: ] steps: - name: List Docker image versions + if: | + ${{ (matrix.image.name == 'crawlab' && needs.build_crawlab.result == 'success') || (matrix.image.name == 'crawlab/crawlab-backend' && needs.build_backend.result == 'success') || (matrix.image.name == 'crawlab/crawlab-frontend' && needs.build_frontend.result == 'success') }} id: list_versions run: | curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \