Skip to content

Commit

Permalink
Versioned builds travis (#6)
Browse files Browse the repository at this point in the history
* push with build number docker
  • Loading branch information
ma7modx authored and mostafazh committed Dec 26, 2018
1 parent 2c20431 commit 66b4c77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker_push
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ set -x

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build . -t eventful-web

docker tag eventful-web cognitev/eventful:build-$TRAVIS_BUILD_NUMBER
docker push cognitev/eventful:build-$TRAVIS_BUILD_NUMBER

docker tag eventful-web cognitev/eventful:latest
docker push cognitev/eventful

0 comments on commit 66b4c77

Please sign in to comment.