From af5e829e1008d73d4fac3f2e7a4089d594f9d51e Mon Sep 17 00:00:00 2001 From: John Schnake Date: Tue, 13 Aug 2019 14:18:59 -0500 Subject: [PATCH] Add image building/pushing back to Travis 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 --- .gitignore | 2 +- .travis.yml | 51 ++++++++++++---------------- heptio-images-c14f11347d8b.json.enc | Bin 0 -> 2336 bytes heptio-images-ee4b0474b93e.json.enc | Bin 2336 -> 0 bytes travis-deploy.sh | 14 +++++++- 5 files changed, 36 insertions(+), 31 deletions(-) create mode 100644 heptio-images-c14f11347d8b.json.enc delete mode 100644 heptio-images-ee4b0474b93e.json.enc diff --git a/.gitignore b/.gitignore index a1a6b99ef..889e4bff8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ build/ examples/dev.yaml # Unencrypted credentials -heptio-images-ee4b0474b93e.json +heptio-images-c14f11347d8b.json # Dynamic Dockerfiles Dockerfile-amd64 diff --git a/.travis.yml b/.travis.yml index ee83d97d4..eeabf67f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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) diff --git a/heptio-images-c14f11347d8b.json.enc b/heptio-images-c14f11347d8b.json.enc new file mode 100644 index 0000000000000000000000000000000000000000..4e501433e460773f3759b94af8bf64b153a96a6e GIT binary patch literal 2336 zcmV+*3E%dkZl!*57knha31B#6r6d~2KVZ`fjsHIr-mbqH-ZWp1cU=*GUcptCRuP+k zIMz>XfDRLis#Y3m36Ljof7rtc_01)j=a{SC`m#sqFgPIQ>}G4xPuEd%eiU!Lgat(h zBx30hw%C}POwsbFFQyXcj9sF{kz`HxS+*mGKk|_@*R32bc`eVPwS^Ir+#l%iQ=c8H|G%+I>FT>mZUuYUy;`&s=)JHnjH6mB2J>Gry zVN}K4(0wBjd(;OebQgk7WbU5g9^LjtDUNMEnZmqzBjrWO5}B+p%kUCPYp0RwX3-5D z%`#NEJ3>z`)V8*%le}@tIT6FX6K;C6`C|bw*7_v5aaqPyXE+|w_qj5asB?@80%Dit z(KW^iNo7g^3UNO6$)c6VA*WmZt_A2ioGn@FXsfljV24W=B6@@PAT{07P!h7|!~Vwo z{xv>^tuB3fhvlPAu?e4p{dsH9vYEz%0Z{urD_E2CsQ#X`#1l#`CwI<6k^e3#yp{^! ze3(Ql+U7ue3$&<31vq{9B^~bvNp(!3Jy28^IUlh2uW8Kgu*e@JOQsq zP@^Hv{-T^vD30qGae0ilx|iEPh88}D;G!p*IrWoiU0l+~HCV;PY%_W<^lEH9#?!X1 zazJEHO%Kd&k>pJ{-9_f`X*mEgvta4Y$0wjva28ikswD_soEm2eBbZ#*9G$4O>@43j zYRWv38#2L@*%N_;Yg3QJyt~V*s0x9PGOUJh$)+Z62hHEJulL8?Nl)_e!)FmGwMy8l z1rO_9M2fD$^S}Zf&FT(+sbfLb&$F`Zj0&DrVe!V(f=2npVWE2TMS>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j>Dp>SWicrLmV0bKD^LV^^$v;~&eam#cu G9j?p;)_lwW literal 0 HcmV?d00001 diff --git a/heptio-images-ee4b0474b93e.json.enc b/heptio-images-ee4b0474b93e.json.enc deleted file mode 100644 index f05461fb2fdd3313e1d6d6165691a944a02c9f9b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2336 zcmV+*3E%c3o2HkhaWAM?LZW2dZQ=w2|ClzGm%2Gur@slyJ5P12IL^6lZmHw-jto+n+~v#( z--GkiVM2ptC*(6ZTWmh8Z=g~#^@G{J)dx>}G@sKJyt~y`$yso9>-IJD+tD$jyz$)sLCm^+IT;23r zwc-Tgn2(pKysCN(hz%F;!EAvhdnsdfW|zqQv>;W0yj@6?inidzgMl8LHm~7~%e<^zeVw6!B+-o13#2BzbFD~0s;&Z1**A9EPmaI|hEpye$|=XVgzs8uPLvJjZ!gM9UnVH|(?A@UUaZeL47^ zRVDu-tXd1JQ|K_9kC7BALL%K`0n6u3q7;Bb&%#hqyBSC@X1obYU3AXT6M>0QIQ=Fw zabuSYOyN**PJuJ#-#&t4uSAByS?mqciO ziwG=4n8}a*V-|yC6ViiSLDZmegh*Y$4QB~zIA)Svoc>rQ5(LNLzqgVChUl|T+<|vX zjV?G@%2Zuh6DbRd0~9fXYk#m99IO!l&DTQ@llT=)KKr&E;aJI#Oy z7r!;ZT_ai!71{rnR^zg>UmfX8zt;~LDi;zq6#q>8DfR|)FNFFOIl3qSJJ4<{!F@KK zAN6Usso_!rwPew=t?D|>&&6()dO?0cE`4#a=$kKubZqu=ngQmL71vL9H~ zGqbQ>+@FH~v$EvM!f|EFDMa`TcU;+)l6S zz68-`mzz_Ed0~;htJeG{(&x@EXoy7n=SAH4JbplpRvY66tdW=uV7=@gt4*%kA>Oq? zIvQmwKyA|k8sy^s&-H8II&a#7SkV0O=qmBVlunc`#M2$m%ti0tK=<;WqDg%uhc=!U zj7$G$KrF=ewTLO1;56gJo9HgD-`IrTT_eD)K=NzDD(XngB+(Gf{L#442x9?1;|o@7 zN6;mYFTdl!320K&=0>Wq=)<=Z5;MV^ND zE*MEYoo$>!D=-?h6j{TZXobT*I&0d6DyH)y2H1B_!u9-|T*sLUr^I>Y+$OM9x)c#N z4^EgtDT`P2$I>oSv=fg52Shymj&kfv5XSpO?!YQn&q^l7kOVRej`qPr>UdDv zSdSmGp-n(+M3XJ%Y>{R4po1XZnohkd>|v__aW`ydH>cg9ar~ebC*%7v!szX*-I3k}wW@}Ha#q+2el)QqiE*?R ztO667^s;~hJVS&E^sM19+Z62N`(XYNku@88M_!KwTTXcP(dQ;3vpM4*2ea46nf6Os z=)HC5?Yb?2v+a-QWjUU?JxR}Tp`BVE6lQ1OIiC+2g=}k;vaN>d*ji8O1YVN>0l=_i zoVU0s41a4LS0RB;z}IY zV4u%OxM#{#aU>W(jwdh9&ihGSBOXR|LL{PAM0EF8c4DS3Rz<*wxII0i;tLbJ8-|%} zY+onpN_^bDtV{>aF}rxQNCb9sWcTktz2TR!Cu^jBIW{16MUMZkjJQx0Bx`(H=R01@ z#k9&sukV*wDnCq*uWP(qc*qpzU`8cO!0NMJ-@(JfG{2^%6yL$_EFPugJ8K-4-rgFC z0DwE;P9Yc;XZ$pRLzbrvE?(80n~8M~R4uvcno?S`u@&2 echo "sonobuoy short version is $(./sonobuoy version --short)" >&2 @@ -23,4 +30,9 @@ if [ ! -z "$TRAVIS_TAG" ]; then fi goreleaser --skip-validate + gcr_push fi + +if [ "$BRANCH" == "master" ]; then + gcr_push +fi \ No newline at end of file