diff --git a/Makefile b/Makefile index 24c9663f9..f95a84712 100644 --- a/Makefile +++ b/Makefile @@ -42,9 +42,12 @@ cephfsplugin-container: cephfsplugin cp _output/cephfsplugin deploy/cephfs/docker docker build -t $(CEPHFS_IMAGE_NAME):$(CEPHFS_IMAGE_VERSION) deploy/cephfs/docker -push-container: rbdplugin-container +push-rbdplugin-container: rbdplugin-container docker push $(RBD_IMAGE_NAME):$(RBD_IMAGE_VERSION) +push-cephfsplugin-container: cephfsplugin-container + docker push $(CEPHFS_IMAGE_NAME):$(CEPHFS_IMAGE_VERSION) + clean: go clean -r -x rm -f deploy/rbd/docker/rbdplugin diff --git a/deploy-cephfs.sh b/deploy-cephfs.sh new file mode 100755 index 000000000..33daed31d --- /dev/null +++ b/deploy-cephfs.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then + docker login -u "${QUAY_IO_USERNAME}" -p "${QUAY_IO_PASSWORD}" quay.io + make push-cephfs-container +fi diff --git a/deploy-rbd.sh b/deploy-rbd.sh new file mode 100755 index 000000000..63d88865a --- /dev/null +++ b/deploy-rbd.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then + docker login -u "${QUAY_IO_USERNAME}" -p "${QUAY_IO_PASSWORD}" quay.io + make push-rbdplugin-container +fi