From fceda2c7966893a36b876e2cb64ecc721ab57b66 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Thu, 7 May 2020 14:14:25 -0400 Subject: [PATCH] Tries defining commit in deploy script --- .travis.yml | 4 ++-- deploy.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index dc102e83..6bf78fa1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,8 +22,8 @@ install: - pipenv install env: - global: - - COMMIT=${$TRAVIS_COMMIT::8} +# global: +# - COMMIT=${$TRAVIS_COMMIT::8} matrix: - PB_BASE_URL='http://workflow.sartography.com:5001/pb/' diff --git a/deploy.sh b/deploy.sh index a1abbca9..ab32d745 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,9 +4,11 @@ echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin || exit 1 REPO="sartography/cr-connect-workflow" TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH" ; fi) +COMMIT=${$TRAVIS_COMMIT::8} echo "REPO = $REPO" echo "TAG = $TAG" +echo "TRAVIS_COMMIT = $TRAVIS_COMMIT" echo "COMMIT = $COMMIT" echo "REPO:COMMIT = $REPO:$COMMIT" echo "REPO:TAG = $REPO:$TAG"