Tries defining commit in deploy script

This commit is contained in:
Aaron Louie 2020-05-07 14:14:25 -04:00
parent 9af91bed8b
commit fceda2c796
2 changed files with 4 additions and 2 deletions

View File

@ -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/'

View File

@ -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"