mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-11 15:30:34 +00:00
Compare commits
2 Commits
release-1.
...
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cccd57cdd | ||
|
|
eccaa81af5 |
25
hack/gcr-push.sh
Executable file
25
hack/gcr-push.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Return value is written into LATEST
|
||||
LATEST=false
|
||||
function is_latest_release() {
|
||||
# If the tag has alpha, beta or rc in it, it's not "latest"
|
||||
if [[ "$TRAVIS_TAG" == *"beta"* || "$TRAVIS_TAG" == *"alpha"* || "$TRAVIS_TAG" == *"rc"* ]]; then
|
||||
LATEST=false
|
||||
else
|
||||
LATEST=true
|
||||
fi
|
||||
}
|
||||
|
||||
# Always publish for master
|
||||
if [ "$BRANCH" == "master" ]; then
|
||||
VERSION="$BRANCH" make all-containers all-push
|
||||
fi
|
||||
|
||||
# Publish when TRAVIS_TAG is defined.
|
||||
if [ ! -z "$TRAVIS_TAG" ]; then
|
||||
# Check if this is the latest release.
|
||||
is_latest_release
|
||||
|
||||
VERSION="$TRAVIS_TAG" TAG_LATEST="$LATEST" make all-containers all-push
|
||||
fi
|
||||
Reference in New Issue
Block a user