mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-21 22:03:45 -07:00
Skip out of deployment early if possible
Don't waste CI time setting up the whole docker build machinery if we don't actually need it because there are no tags to deploy.
This commit is contained in:
parent
28d3279ba6
commit
7963b52b8a
1 changed files with 2 additions and 1 deletions
|
@ -51,9 +51,10 @@ jobs:
|
|||
- ./.github_deploy
|
||||
|
||||
- stage: Deploy docker image
|
||||
# Deploy only for pushes to master branch, not other branches, not PRs.
|
||||
# Deploy only for pushes, not PRs, since PRs can't access Travis secrets.
|
||||
if: type = push
|
||||
script:
|
||||
- if [ -z "$TAGS" ]; then exit 0; fi # Skip rest if nothing to deploy.
|
||||
- source ./.multi_arch_docker
|
||||
- set -ex; multi_arch_docker::main; set +x
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue