Skip to content
Permalink
Browse files

[travis] Updates Travis to tag master builds as :latest, and adds ver…

…sion tagged images to daemonsets
  • Loading branch information...
dougbtv authored and s1061123 committed Mar 21, 2019
1 parent 08a2623 commit c319f6b52ce920045b105d987fe3a12a09185f08
Showing with 15 additions and 9 deletions.
  1. +4 −2 .goreleaser.yml
  2. +9 −5 .travis.yml
  3. +1 −1 images/multus-crio-daemonset.yml
  4. +1 −1 images/multus-daemonset.yml
@@ -18,5 +18,7 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-snapshot"
release:
draft: true
#release:
# draft: true
changelog:
skip: true
@@ -48,21 +48,24 @@ script:
deploy:
# Release on versioned tag (e.g. v1.0)
- provider: script
skip_cleanup: true
#skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
all_branches: true
condition: "$TRAVIS_TAG =~ ^v[0-9].*$"
# Push images to Dockerhub on tag
- provider: script
skip_cleanup: true
script: >
bash -c '
docker tag nfvpe/multus nfvpe/multus:$TRAVIS_TAG;
docker tag nfvpe/multus nfvpe/multus:stable;
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;
echo foo'
echo done'
on:
tags: true
all_branches: true
@@ -75,8 +78,9 @@ deploy:
bash -c '
docker tag nfvpe/multus nfvpe/multus:snapshot;
docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS";
docker push nfvpe/multus:snapshot;
echo foo'
docker push nfvpe/multus:snapshot;
docker push nfvpe/multus:latest;
echo done'
after_success:
# put build tgz to bintray
@@ -130,7 +130,7 @@ spec:
serviceAccountName: multus
containers:
- name: kube-multus
image: nfvpe/multus:latest
image: nfvpe/multus:v3.2
command: ["/entrypoint.sh"]
args:
- "--multus-conf-file=/tmp/multus-conf/70-multus.conf"
@@ -130,7 +130,7 @@ spec:
serviceAccountName: multus
containers:
- name: kube-multus
image: nfvpe/multus:latest
image: nfvpe/multus:v3.2
command: ["/entrypoint.sh"]
args:
- "--multus-conf-file=/tmp/multus-conf/70-multus.conf"

0 comments on commit c319f6b

Please sign in to comment.
You can’t perform that action at this time.