mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
Remove mention of Travis from deployment script (#1446)
Signed-off-by: Chris M <millscj01@gmail.com>
This commit is contained in:
committed by
Aaron Schlesinger
parent
000d2b92a1
commit
025e621007
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user