1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00

travis: enable pushing of release images

This patch enables automatic pushes of release images whenever a new git
tag is created. This works as expected as the $TRAVIS_BRANCH variable is
set to $TRAVIS_TAG when builds are triggered by a new tag.
This commit is contained in:
Markus Lehtonen 2019-06-24 06:49:08 +03:00
parent 7d6049e4d6
commit 7054e7dd43

View file

@ -12,8 +12,13 @@ script:
- make image -e
deploy:
on:
- on:
branch: master
condition: -n "$IMAGE_REPO_USER"
provider: script
script: echo "$IMAGE_REPO_PASSWORD" | docker login -u "$IMAGE_REPO_USER" --password-stdin quay.io && make push -e
- on:
tags: true
condition: -n "$IMAGE_REPO_USER"
provider: script
script: echo "$IMAGE_REPO_PASSWORD" | docker login -u "$IMAGE_REPO_USER" --password-stdin quay.io && make push -e