Remove mention of Travis from deployment script (#1446)

Signed-off-by: Chris M <millscj01@gmail.com>
This commit is contained in:
Chris Mills
2019-11-06 19:41:34 +00:00
committed by Aaron Schlesinger
parent 000d2b92a1
commit 025e621007
+4 -13
View File
@@ -4,19 +4,10 @@
set -xeuo pipefail
REGISTRY=${REGISTRY:-gomods/}
# Use the travis variables when available because travis clones different than what is on a local dev machine
# VERSION = the tag if present, otherwise the short commit hash
# BRANCH = the current branch, empty if not on a branch
if [[ "${TRAVIS-}" == "true" ]]; then
VERSION=${TRAVIS_TAG:-${TRAVIS_COMMIT::7}}
BRANCH=${TRAVIS_BRANCH}
else
TAG=$(git describe --tags --exact-match 2> /dev/null || true)
COMMIT=$(git rev-parse --short=7 HEAD)
VERSION=${VERSION:-${TAG:-${COMMIT}}}
BRANCH=${BRANCH:-$(git symbolic-ref -q --short HEAD || echo "")}
fi
TAG=$(git describe --tags --exact-match 2> /dev/null || true)
COMMIT=$(git rev-parse --short=7 HEAD)
VERSION=${VERSION:-${TAG:-${COMMIT}}}
BRANCH=${BRANCH:-$(git symbolic-ref -q --short HEAD || echo "")}
# MUTABLE_TAG is the docker image tag that we will reuse between pushes, it is not an immutable tag like a commit hash or tag.
if [[ "${MUTABLE_TAG:-}" == "" ]]; then