mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 09:38:48 +08:00
Run "deploy" step only for "Build" stages
This commit is contained in:
@@ -22,8 +22,8 @@ jobs:
|
|||||||
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
|
||||||
- mkdir deploy
|
|
||||||
|
|
||||||
|
# This is in global context and runs for every stage that doesn't override it.
|
||||||
before_install: |
|
before_install: |
|
||||||
DOCKER_BASE="$DOCKER_USERNAME/shellcheck"
|
DOCKER_BASE="$DOCKER_USERNAME/shellcheck"
|
||||||
DOCKER_BUILDS=""
|
DOCKER_BUILDS=""
|
||||||
@@ -32,6 +32,7 @@ before_install: |
|
|||||||
test -n "$TRAVIS_TAG" && TAGS="$TAGS stable $TRAVIS_TAG" || true
|
test -n "$TRAVIS_TAG" && TAGS="$TAGS stable $TRAVIS_TAG" || true
|
||||||
echo "Tags are $TAGS"
|
echo "Tags are $TAGS"
|
||||||
|
|
||||||
|
# This is in global context and runs for every stage that doesn't override it.
|
||||||
script:
|
script:
|
||||||
- mkdir -p deploy
|
- mkdir -p deploy
|
||||||
- source ./.compile_binaries
|
- source ./.compile_binaries
|
||||||
@@ -40,6 +41,7 @@ script:
|
|||||||
- ./.prepare_deploy
|
- ./.prepare_deploy
|
||||||
- ./.github_deploy
|
- ./.github_deploy
|
||||||
|
|
||||||
|
# This is in global context and runs for every stage that doesn't override it.
|
||||||
after_failure: |
|
after_failure: |
|
||||||
id
|
id
|
||||||
pwd
|
pwd
|
||||||
@@ -47,6 +49,7 @@ after_failure: |
|
|||||||
find . -name '*.log' -type f -exec grep "" /dev/null {} +
|
find . -name '*.log' -type f -exec grep "" /dev/null {} +
|
||||||
find . -ls
|
find . -ls
|
||||||
|
|
||||||
|
# This is in global context and runs for every stage that doesn't override it.
|
||||||
deploy:
|
deploy:
|
||||||
provider: gcs
|
provider: gcs
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
@@ -57,4 +60,5 @@ deploy:
|
|||||||
local_dir: deploy
|
local_dir: deploy
|
||||||
on:
|
on:
|
||||||
repo: koalaman/shellcheck
|
repo: koalaman/shellcheck
|
||||||
|
condition: $TRAVIS_BUILD_STAGE_NAME = Build
|
||||||
all_branches: true
|
all_branches: true
|
||||||
|
Reference in New Issue
Block a user