-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci) build Docker image for each commit to the master branch
These builds are pushed to following Docker repository: https://bintray.com/beta/#/kong/kubernetes-ingress-controller/master From #377 Co-Authored-By: Colin Hutchinson <hutchic@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash -e | ||
|
||
if [[ "$TRAVIS_BRANCH" != "master" ]]; | ||
then | ||
exit 0 | ||
fi | ||
|
||
REPO="kong-docker-kubernetes-ingress-controller.bintray.io" | ||
export IMGNAME="master" | ||
export TAG=`git rev-parse --short HEAD` | ||
|
||
make container | ||
docker tag ${REPO}/${IMGNAME}:${TAG} ${REPO}/${IMGNAME}:latest | ||
echo "${BINTRAY_KEY}" | docker login -u "${BINTRAY_USER}" ${REPO} --password-stdin | ||
|
||
docker push ${REPO}/${IMGNAME}:${TAG} | ||
docker push ${REPO}/${IMGNAME}:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,6 @@ before_script: | |
script: | ||
- make verify-codegen | ||
- make test-all | ||
|
||
after_success: | ||
- .ci/build-master.sh |