.travis.yml: only tag latest image if not git tag

If we tag a release for, e.g. 0.1.1, after we've already cut a 0.2.0
tag, then CI would tag the 0.1.1 image as `latest`, which is confusing.
This commit ensures that we only tag the `latest` image when building
from master.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
This commit is contained in:
Lucas Servén Marín 2020-09-15 15:58:15 +02:00
parent ab8df1306e
commit b5cadfe3de
No known key found for this signature in database
GPG Key ID: 586FEAF680DA74AD
1 changed files with 1 additions and 1 deletions

View File

@ -28,4 +28,4 @@ script:
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- make manifest && make manifest-latest
- make manifest && [ -z "$TRAVIS_TAG" ] && make manifest-latest