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
@@ -16,10 +16,19 @@ before_script:
- curl -sSL get.docker.com | sudo -E sh
after_success:
+ - if [ -z $DOCKER_NS ] ; then
+ export DOCKER_NS=openfaas;
+ fi
+
- if [ ! -z "$TRAVIS_TAG" ] ; then
docker tag $DOCKER_NS/faas-netesd:latest $DOCKER_NS/faas-netesd:$TRAVIS_TAG;
echo $DOCKER_PASSWORD | docker login -u=$DOCKER_USERNAME --password-stdin;
docker push $DOCKER_NS/faas-netesd:$TRAVIS_TAG;
+
+ docker tag $DOCKER_NS/faas-netesd:latest-dev quay.io/$DOCKER_NS/faas-netesd:$TRAVIS_TAG;
+ echo $QUAY_PASSWORD | docker login -u=$QUAY_USERNAME --password-stdin quay.io;
+ docker push quay.io/$DOCKER_NS/faas-netesd:$TRAVIS_TAG;
+
fi
script:
