1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00

Tags the docker image if there is a git tag

This commit is contained in:
John Jarvis 2019-09-06 16:28:10 +02:00
parent 7112ea8a04
commit fffa69238c

View File

@ -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