mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
Update docker-crawlab.yml
This commit is contained in:
9
.github/workflows/docker-crawlab.yml
vendored
9
.github/workflows/docker-crawlab.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user