[travis] Updates Travis to tag master builds as :latest, and adds version tagged images to daemonsets

This commit is contained in:
dougbtv 2019-03-21 11:56:10 -04:00 committed by Tomofumi Hayashi
parent 08a2623b8e
commit 1b0b39d2f5
4 changed files with 13 additions and 7 deletions

View File

@ -20,3 +20,5 @@ snapshot:
name_template: "{{ .Tag }}-snapshot" name_template: "{{ .Tag }}-snapshot"
release: release:
draft: true draft: true
changelog:
skip: true

View File

@ -48,7 +48,7 @@ script:
deploy: deploy:
# Release on versioned tag (e.g. v1.0) # Release on versioned tag (e.g. v1.0)
- provider: script - provider: script
skip_cleanup: true #skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash script: curl -sL https://git.io/goreleaser | bash
on: on:
tags: true tags: true
@ -56,13 +56,16 @@ deploy:
condition: "$TRAVIS_TAG =~ ^v[0-9].*$" condition: "$TRAVIS_TAG =~ ^v[0-9].*$"
# Push images to Dockerhub on tag # Push images to Dockerhub on tag
- provider: script - provider: script
skip_cleanup: true
script: > script: >
bash -c ' bash -c '
docker tag nfvpe/multus nfvpe/multus:$TRAVIS_TAG; docker tag nfvpe/multus nfvpe/multus:$TRAVIS_TAG;
docker tag nfvpe/multus nfvpe/multus:stable;
docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"; docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS";
docker push nfvpe/multus; docker push nfvpe/multus;
docker push nfvpe/multus:stable;
docker push nfvpe/multus:$TRAVIS_TAG; docker push nfvpe/multus:$TRAVIS_TAG;
echo foo' echo done'
on: on:
tags: true tags: true
all_branches: true all_branches: true
@ -76,7 +79,8 @@ deploy:
docker tag nfvpe/multus nfvpe/multus:snapshot; docker tag nfvpe/multus nfvpe/multus:snapshot;
docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"; docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS";
docker push nfvpe/multus:snapshot; docker push nfvpe/multus:snapshot;
echo foo' docker push nfvpe/multus:latest;
echo done'
after_success: after_success:
# put build tgz to bintray # put build tgz to bintray

View File

@ -130,7 +130,7 @@ spec:
serviceAccountName: multus serviceAccountName: multus
containers: containers:
- name: kube-multus - name: kube-multus
image: nfvpe/multus:latest image: nfvpe/multus:v3.2
command: ["/entrypoint.sh"] command: ["/entrypoint.sh"]
args: args:
- "--multus-conf-file=/tmp/multus-conf/70-multus.conf" - "--multus-conf-file=/tmp/multus-conf/70-multus.conf"

View File

@ -130,7 +130,7 @@ spec:
serviceAccountName: multus serviceAccountName: multus
containers: containers:
- name: kube-multus - name: kube-multus
image: nfvpe/multus:latest image: nfvpe/multus:v3.2
command: ["/entrypoint.sh"] command: ["/entrypoint.sh"]
args: args:
- "--multus-conf-file=/tmp/multus-conf/70-multus.conf" - "--multus-conf-file=/tmp/multus-conf/70-multus.conf"