Cleans up debugging stuff

This commit is contained in:
Aaron Louie 2020-05-07 14:27:50 -04:00
parent 0d65e89dcb
commit 615b1c9469
2 changed files with 1 additions and 7 deletions

View File

@ -14,7 +14,7 @@ deploy:
skip_cleanup: true
on:
all_branches: true
# condition: $TRAVIS_BRANCH =~ ^(testing|staging|master)$
condition: $TRAVIS_BRANCH =~ ^(testing|staging|master)$
notifications:
email:

View File

@ -7,12 +7,6 @@ REPO="sartography/cr-connect-$APP"
TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH" ; fi)
COMMIT=${TRAVIS_COMMIT::8}
echo "APP = $APP"
echo "REPO = $REPO"
echo "TAG = $TAG"
echo "TRAVIS_COMMIT = $TRAVIS_COMMIT"
echo "COMMIT = $COMMIT"
docker build -f Dockerfile -t "$REPO:$COMMIT" .
docker tag "$REPO:$COMMIT" "$REPO:$TAG"
docker tag "$REPO:$COMMIT" "$REPO:travis-$TRAVIS_BUILD_NUMBER"