Skip to content

Commit

Permalink
Tag and push Docker latest image when deploying with TravisCI (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonatas Baldin authored and ekarson committed Jul 31, 2018
1 parent 2b681b5 commit a01dcde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -33,8 +33,10 @@ docker-build:
docker build -t twilio/twilio-ruby .
docker tag twilio/twilio-ruby twilio/twilio-ruby:${TRAVIS_TAG}
docker tag twilio/twilio-ruby twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
docker tag twilio/twilio-ruby twilio/twilio-ruby:latest

docker-push:
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
docker push twilio/twilio-ruby:${TRAVIS_TAG}
docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
docker push twilio/twilio-ruby:latest

0 comments on commit a01dcde

Please sign in to comment.