-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract build logic from .travis.yml to 'build.sh'
main reason is that Travis will always execute ALL commands under the "script" block, even if some of them failed. see: travis-ci/travis-ci#1066
- Loading branch information
Arik Kfir
committed
Sep 23, 2017
1 parent
145cb68
commit 6c7c61a
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
docker build -t infolinks/k8s-cloudflared:${TRAVIS_COMMIT} . | ||
|
||
if [[ ${TRAVIS_TAG} =~ ^v[0-9]+$ ]]; then | ||
docker tag infolinks/k8s-cloudflared:${TRAVIS_COMMIT} infolinks/k8s-cloudflared:${TRAVIS_TAG} | ||
docker push infolinks/k8s-cloudflared:${TRAVIS_TAG} | ||
docker tag infolinks/k8s-cloudflared:${TRAVIS_COMMIT} infolinks/k8s-cloudflared:latest | ||
docker push infolinks/k8s-cloudflared:latest | ||
fi |