mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-06-29 00:56:55 +00:00
commit
6ffd60d289
16
.travis.yml
16
.travis.yml
@ -6,6 +6,7 @@ dist: trusty
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- REGISTRY_USER=${REGISTRY_USER}
|
- REGISTRY_USER=${REGISTRY_USER}
|
||||||
|
- REGISTRY_PASS=${REGISTRY_PASS}
|
||||||
- secure: "${REGISTRY_SECURE}"
|
- secure: "${REGISTRY_SECURE}"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
@ -45,18 +46,29 @@ deploy:
|
|||||||
tags: true
|
tags: true
|
||||||
all_branches: true
|
all_branches: true
|
||||||
condition: "$TRAVIS_TAG =~ ^v[0-9].*$"
|
condition: "$TRAVIS_TAG =~ ^v[0-9].*$"
|
||||||
# Push images to Dockerhub
|
# Push images to Dockerhub on tag
|
||||||
- provider: script
|
- provider: script
|
||||||
script: >
|
script: >
|
||||||
bash -c '
|
bash -c '
|
||||||
docker tag nfvpe/multus nfvpe/multus:$TRAVIS_TAG;
|
docker tag nfvpe/multus nfvpe/multus:$TRAVIS_TAG;
|
||||||
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:$TRAVIS_TAG'
|
docker push nfvpe/multus:$TRAVIS_TAG;
|
||||||
|
echo foo'
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
all_branches: true
|
all_branches: true
|
||||||
condition: "$TRAVIS_TAG =~ ^v[0-9].*$"
|
condition: "$TRAVIS_TAG =~ ^v[0-9].*$"
|
||||||
|
# Push images to Dockerhub on merge to master
|
||||||
|
- provider: script
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
script: >
|
||||||
|
bash -c '
|
||||||
|
docker tag nfvpe/multus nfvpe/multus:snapshot;
|
||||||
|
docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS";
|
||||||
|
docker push nfvpe/multus:snapshot;
|
||||||
|
echo foo'
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# put build tgz to bintray
|
# put build tgz to bintray
|
||||||
|
Loading…
Reference in New Issue
Block a user