1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-08-09 15:42:47 +03:00

Update .travis.yml to push tagged versions.

This commit is contained in:
Will Rouesnel
2016-11-29 07:49:34 +11:00
parent 8ec2d3d73c
commit 1e43282aa2

View File

@@ -21,6 +21,7 @@ after_success:
# Push a tagged build if a tag is found. # Push a tagged build if a tag is found.
- if [ ! -z "$TRAVIS_TAG" ]; then - if [ ! -z "$TRAVIS_TAG" ]; then
docker tag wrouesnel/postgres_exporter:latest wrouesnel/postgres_exporter:$TRAVIS_TAG ; docker tag wrouesnel/postgres_exporter:latest wrouesnel/postgres_exporter:$TRAVIS_TAG ;
docker push wrouesnel/postgres_exporter:$TRAVIS_TAG ;
fi fi
# Push a latest version # Push a latest version
- if [ "$TRAVIS_BRANCH" == "master" ]; then docker push wrouesnel/postgres_exporter ; fi - if [ "$TRAVIS_BRANCH" == "master" ]; then docker push wrouesnel/postgres_exporter ; fi