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 - pipenv install
env: env:
global: # global:
- COMMIT=${$TRAVIS_COMMIT::8} # - COMMIT=${$TRAVIS_COMMIT::8}
matrix: matrix:
- PB_BASE_URL='http://workflow.sartography.com:5001/pb/' - 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 echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin || exit 1
REPO="sartography/cr-connect-workflow" REPO="sartography/cr-connect-workflow"
TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH" ; fi) TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH" ; fi)
COMMIT=${$TRAVIS_COMMIT::8}
echo "REPO = $REPO" echo "REPO = $REPO"
echo "TAG = $TAG" echo "TAG = $TAG"
echo "TRAVIS_COMMIT = $TRAVIS_COMMIT"
echo "COMMIT = $COMMIT" echo "COMMIT = $COMMIT"
echo "REPO:COMMIT = $REPO:$COMMIT" echo "REPO:COMMIT = $REPO:$COMMIT"
echo "REPO:TAG = $REPO:$TAG" echo "REPO:TAG = $REPO:$TAG"