Merge pull request #106 from mcronce/csi-1.0-ci

CI for csi-v1.0 branch
This commit is contained in:
Huamin Chen 2018-12-10 10:28:00 -05:00 committed by GitHub
commit 0316ebecbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -5,6 +5,7 @@ language: go
branches: branches:
only: only:
- master - master
- csi-v1.0
go: 1.9.x go: 1.9.x

View File

@ -1,6 +1,14 @@
#!/bin/bash #!/bin/bash
if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then if [ "${TRAVIS_BRANCH}" == 'master' ]; then
export RBD_IMAGE_VERSION='v0.3.0';
export CEPHFS_IMAGE_VERSION='v0.3.0';
elif [ "${TRAVIS_BRANCH}" == 'csi-v1.0' ]; then
export RBD_IMAGE_VERSION='v1.0.0';
export CEPHFS_IMAGE_VERSION='v1.0.0';
fi;
if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ -n "${RBD_IMAGE_VERSION}" ]; then
docker login -u "${QUAY_IO_USERNAME}" -p "${QUAY_IO_PASSWORD}" quay.io docker login -u "${QUAY_IO_USERNAME}" -p "${QUAY_IO_PASSWORD}" quay.io
make push-image-rbdplugin push-image-cephfsplugin make push-image-rbdplugin push-image-cephfsplugin
fi fi;