Skip to content

Commit

Permalink
Tag and push Docker latest image when deploying with TravisCI (#366)
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 511b136 commit 63cafeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -21,8 +21,10 @@ docker-build:
docker build -t twilio/twilio-node .
docker tag twilio/twilio-node twilio/twilio-node:${TRAVIS_TAG}
docker tag twilio/twilio-node twilio/twilio-node:apidefs-${API_DEFINITIONS_SHA}
docker tag twilio/twilio-node twilio/twilio-node:latest

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

0 comments on commit 63cafeb

Please sign in to comment.