-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Bug fixes, one image per PR (#47)
* One image per PR * Don't use Travis deploys * Fix if statement in YAML
- Loading branch information
Showing
4 changed files
with
57 additions
and
33 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
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,22 @@ | ||
#!/usr/bin/env bash | ||
set -o errexit | ||
set -o pipefail | ||
|
||
# Pull Request image tag format: PR00-PRUSER | ||
if [ "${TRAVIS_EVENT_TYPE}" = "pull_request" ]; then | ||
PR_USER=$(echo "$TRAVIS_PULL_REQUEST_SLUG" | sed -e 's/\/.*//') | ||
echo "Building/pushing PR$TRAVIS_PULL_REQUEST from $PR_USER" | ||
make push IMG_TAG="PR$TRAVIS_PULL_REQUEST-$PR_USER" | ||
exit 0 | ||
fi | ||
|
||
# Release image tag format: v0.0.0 and latest | ||
if [ -n "$TRAVIS_TAG" ]; then | ||
echo "Running Release build on Travis" | ||
make release RELEASE_TAG="$TRAVIS_TAG" | ||
exit 0 | ||
fi | ||
|
||
# Push image tag format: COMMIT | ||
echo "Running push build on Travis" | ||
make push |
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