push image on branch release 2.1

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2020-02-10 16:36:31 +08:00
parent eff9918e6e
commit 77b66dab14
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 .