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:
parent
7d6049e4d6
commit
7054e7dd43
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue