ummm now does deploy work

This commit is contained in:
Cassie Tarakajian 2018-08-27 17:38:59 -04:00
parent 16b54b89ca
commit 363b9cc8d0
2 changed files with 8 additions and 1 deletions

View File

@ -35,7 +35,12 @@ deploy:
script: bash deploy.sh
skip_cleanup: true
on:
branch: master OR production-docker
branch: production-docker
- provider: script
script: bash deploy.sh
skip_cleanup: true
on:
branch: master
env:
global:

View File

@ -5,7 +5,9 @@ set -e
docker-compose build --no-cache
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker tag $APP_IMAGE_NAME $DOCKER_USERNAME/$DOCKER_REPOSITORY:$TRAVIS_COMMIT
docker tag $APP_IMAGE_NAME $DOCKER_USERNAME/$DOCKER_REPOSITORY:latest
docker push $DOCKER_USERNAME/$DOCKER_REPOSITORY:$TRAVIS_COMMIT
docker push $DOCKER_USERNAME/$DOCKER_REPOSITORY:latest
# echo $GCLOUD_SERVICE_KEY_PRD | base64 --decode -i > ${HOME}/gcloud-service-key.json
# gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json