Merge pull request #1828 from runzexia/release-2.1-travis

push image on branch release 2.1
This commit is contained in:
KubeSphere CI Bot
2020-02-11 11:09:31 +08:00
committed by GitHub
2 changed files with 14 additions and 5 deletions

View File

@@ -29,8 +29,13 @@ install:
- go get golang.org/x/lint/golint
deploy:
skip_cleanup: true
provider: script
script: bash hack/docker_build.sh
on:
branch: master
- skip_cleanup: true
provider: script
script: bash hack/docker_build.sh
on:
branch: master
- skip_cleanup: true
provider: script
script: bash hack/docker_build.sh
on:
branch: release-2.1

View File

@@ -13,6 +13,10 @@ elif [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then
TAG=dev-$(date +%Y%m%d)
fi
if [[ $TRAVIS_BRANCH == "release-2.1" ]]; then
TAG=release-2.1
fi
docker build -f build/ks-apigateway/Dockerfile -t $REPO/ks-apigateway:$TAG .
docker build -f build/ks-apiserver/Dockerfile -t $REPO/ks-apiserver:$TAG .