Skip to content

Commit 3854909

Browse files
ivanayovalexellis
authored andcommitted
Push image to both Quay.io and Docker Hub
With this change faas-netesd will be pushed to Quay.io on release as a backup Signed-off-by: Ivana Yovcheva (VMware) <[email protected]>
1 parent 728f6f1 commit 3854909

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@ before_script:
1616
- curl -sSL get.docker.com | sudo -E sh
1717

1818
after_success:
19+
- if [ -z $DOCKER_NS ] ; then
20+
export DOCKER_NS=openfaas;
21+
fi
22+
1923
- if [ ! -z "$TRAVIS_TAG" ] ; then
2024
docker tag $DOCKER_NS/faas-netesd:latest $DOCKER_NS/faas-netesd:$TRAVIS_TAG;
2125
echo $DOCKER_PASSWORD | docker login -u=$DOCKER_USERNAME --password-stdin;
2226
docker push $DOCKER_NS/faas-netesd:$TRAVIS_TAG;
27+
28+
docker tag $DOCKER_NS/faas-netesd:latest-dev quay.io/$DOCKER_NS/faas-netesd:$TRAVIS_TAG;
29+
echo $QUAY_PASSWORD | docker login -u=$QUAY_USERNAME --password-stdin quay.io;
30+
docker push quay.io/$DOCKER_NS/faas-netesd:$TRAVIS_TAG;
31+
2332
fi
2433

2534
script:

0 commit comments

Comments
 (0)