Skip to content

Commit

Permalink
[travis] Updates Travis to tag master builds as :latest, and adds ver…
Browse files Browse the repository at this point in the history
…sion tagged images to daemonsets
  • Loading branch information
dougbtv authored and s1061123 committed Mar 22, 2019
1 parent 08a2623 commit c319f6b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-snapshot"
release:
draft: true
#release:
# draft: true
changelog:
skip: true
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion images/multus-crio-daemonset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion images/multus-daemonset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c319f6b

Please sign in to comment.