Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image building/pushing back to Travis (#835)
Got authorization to re-add credentials for image pushing to Travis via their recommended approach outlined here: https://docs.travis-ci.com/user/encrypting-files/ Fixes #808 Signed-off-by: John Schnake <jschnake@vmware.com>
- Loading branch information
1 parent
4c07889
commit 83e39f2
Showing
5 changed files
with
36 additions
and
31 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
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 |
---|---|---|
@@ -1,40 +1,33 @@ | ||
sudo: required | ||
language: go | ||
go: | ||
- "1.12" | ||
|
||
- '1.12' | ||
services: | ||
- docker | ||
|
||
- docker | ||
install: true | ||
|
||
script: | ||
- VERBOSE=true make test int | ||
- ./travis-ci.sh | ||
|
||
script: | ||
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi) | ||
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$TRAVIS_PULL_REQUEST, BRANCH=$BRANCH" | ||
- VERBOSE=true make test int | ||
- ./travis-ci.sh | ||
before_install: | ||
# Download and install Kind | ||
- curl -L https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64 --output kind && chmod +x kind | ||
- ./kind create cluster --config kind-config.yaml | ||
- export KUBECONFIG="$(./kind get kubeconfig-path --name="kind")" | ||
- curl -L https://github.com/golang/dep/releases/download/v0.5.3/dep-linux-amd64 --output dep && chmod +x dep | ||
|
||
- curl -L https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64 | ||
--output kind && chmod +x kind | ||
- ./kind create cluster --config kind-config.yaml | ||
- export KUBECONFIG="$(./kind get kubeconfig-path --name="kind")" | ||
- curl -L https://github.com/golang/dep/releases/download/v0.5.3/dep-linux-amd64 --output | ||
dep && chmod +x dep | ||
before_deploy: | ||
# Install gcloud cli here so it gets cached | ||
- if [ ! -d ${HOME}/google-cloud-sdk ]; then | ||
curl https://sdk.cloud.google.com | bash /dev/stdin --disable-prompts; | ||
fi | ||
|
||
- if [ ! -d ${HOME}/google-cloud-sdk ]; then curl https://sdk.cloud.google.com | bash | ||
/dev/stdin --disable-prompts; fi | ||
deploy: | ||
- provider: script | ||
skip_cleanup: true | ||
script: ./travis-deploy.sh | ||
on: | ||
repo: heptio/sonobuoy | ||
all_branches: true | ||
|
||
- provider: script | ||
skip_cleanup: true | ||
script: ./travis-deploy.sh | ||
on: | ||
repo: heptio/sonobuoy | ||
all_branches: true | ||
env: | ||
secure: AsGb+4LLxBE9fo8eJMfuwUK3QTt61TC+HDP+GbzRaYPB27usaSouAvqeLJI2jxDU/oNaDlNarb3A43gZIqbZe+0uT8jdrqnv5pGmX4CooNm52zF4QEQrFpERvfFAdbUKkZ11NLXav3S0iLVb8/iWopF0/yvt7h0ohBzNX/tMs7vYeZ5KbKUF8v7Uwg3VmjIHsvfSmtaEvWPi3302O/lo5J1tB6TH8b/bAXWweU8GKmQnQKES/+tUern+zOT0S47/fyRbvG6KbLdttol9k7KbzWZxG2iHcC65ogmdHD2azZmLyL8s5khDkA2rO4ovnOqse2kxmxn7da7y8k93vWaN1y98RpXw4H6brsH15BzoGoYBaMLg/Kn/JbTkSxPkPr/+6WGJ6lFeGgvArkwCXVyRPpecSH55+kvKmD8wxGnXaQp086cNKBiZYgN4C+T/8XXO011CxgjzLCsyyqr2KGI7c1VXvdiDt+fjVUeE/ftbHFdHH8Oc809U+6sa+6UWFxDcg3fsyIDKqUAh+cOYdjL+8+OpNWiV8p7/Yu+QntbfMuRmkyQz9boYZU58uzFGe0B87nu0Y9O6nIKJWu07nPiPP11CU3iv2aYDfg2y1wvyvk5rWSgnBnD82nHf7ip2/bykbsajK2fcX1sIA/3c7NzWtKauxnfTXLxxqBRbZFkOuoE= | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- bash <(curl -s https://codecov.io/bash) |
Binary file not shown.
Binary file not shown.
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