Skip to content

Commit

Permalink
Update docker-crawlab.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq authored Mar 23, 2023
1 parent cac5a26 commit 8c083ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-crawlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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: |
Expand All @@ -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'
Expand Down

0 comments on commit 8c083ed

Please sign in to comment.