Skip to content

Commit

Permalink
Merge pull request #115 from jarv/jarv/add-tags
Browse files Browse the repository at this point in the history
Tags the docker image if there is a git tag
  • Loading branch information
arnaudroques authored Sep 7, 2019
2 parents 7112ea8 + fffa692 commit 5e7b8dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- docker build --pull -t plantuml/plantuml-server:jetty -f Dockerfile.jetty .
- docker tag plantuml/plantuml-server:jetty plantuml/plantuml-server:latest
- if [ -n "$TRAVIS_TAG" ]; then
docker tag plantuml/plantuml-server:jetty plantuml/plantuml-server:$TRAVIS_TAG;
docker push plantuml/plantuml-server:$TRAVIS_TAG;
fi
- docker push plantuml/plantuml-server:jetty
- docker push plantuml/plantuml-server:latest
- stage: docker-push
Expand Down

0 comments on commit 5e7b8dd

Please sign in to comment.