mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-22 02:22:18 +08:00
Don't try to deploy docker images on PR runs
For security reasons, PR runs don't have access to Travis secrets. However, Docker deployment depends on the secret DOCKER_PASSWORD. Thus we shouldn't try Docker deployment when running PRs since it will fail for lack of access.
This commit is contained in:
@@ -17,7 +17,8 @@ jobs:
|
|||||||
os: osx
|
os: osx
|
||||||
|
|
||||||
- stage: Deploy docker image
|
- stage: Deploy docker image
|
||||||
if: branch = master
|
# Deploy only for pushes to master branch, not other branches, not PRs.
|
||||||
|
if: branch = master AND type = push
|
||||||
script:
|
script:
|
||||||
- source ./.multi_arch_docker
|
- source ./.multi_arch_docker
|
||||||
- set -ex; multi_arch_docker::main; set +x
|
- set -ex; multi_arch_docker::main; set +x
|
||||||
|
Reference in New Issue
Block a user