From 8c083edbd93849b78dae6c7369a62920942b2c68 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 23 Mar 2023 13:06:07 +0800 Subject: [PATCH] Update docker-crawlab.yml --- .github/workflows/docker-crawlab.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-crawlab.yml b/.github/workflows/docker-crawlab.yml index fb3fb60e8..f447a7645 100644 --- a/.github/workflows/docker-crawlab.yml +++ b/.github/workflows/docker-crawlab.yml @@ -54,6 +54,12 @@ jobs: done # set outputs + if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then + is_matched_backend=1 + is_matched_frontend=1 + is_matched_dockerfile=1 + fi + echo "::set-output name=is_matched_backend::$is_matched_backend" echo "::set-output name=is_matched_frontend::$is_matched_frontend" echo "::set-output name=is_matched_dockerfile::$is_matched_dockerfile" @@ -62,6 +68,7 @@ jobs: echo "is_matched_backend=$is_matched_backend, file_backend=$file_backend" echo "is_matched_frontend=$is_matched_frontend, file_frontend=$file_frontend" echo "is_matched_dockerfile=$is_matched_dockerfile, file_dockerfile=$file_dockerfile" + - id: version name: Get version run: | @@ -75,7 +82,7 @@ jobs: [ "$VERSION" == "main" ] && VERSION=latest echo "::set-output name=version::$VERSION" - + build-backend: needs: [ setup ] if: needs.setup.outputs.is_matched_backend == '1'