Actually run after_success
@@ -6,16 +6,15 @@ services:
install: true
-before-install:
-# GCP creds
-- openssl aes-256-cbc -K $encrypted_708bef23737d_key -iv $encrypted_708bef23737d_iv -in heptio-images-ee4b0474b93e.json.enc -out ./heptio-images-ee4b0474b93e.json -d
-# Install gcloud cli
+
+script: VERBOSE=true make test int
+
+before_install:
+# Install gcloud cli here so it gets cached
- if [ ! -d ${HOME}/google-cloud-sdk ]; then
- curl https://sdk.cloud.google.com | bash;
+ curl https://sdk.cloud.google.com | bash /dev/stdin --disable-prompts;
fi
-- gcloud auth activate-service-account --key-file heptio-images-ee4b0474b93e.json
-script: VERBOSE=true make test int
deploy:
- provider: script
skip_cleanup: true
@@ -25,7 +24,10 @@ deploy:
tags: true
# Push to GCR
- provider: script
- script: DOCKER="gcloud docker -- " make container push
+ script:
+ - openssl aes-256-cbc -K $encrypted_708bef23737d_key -iv $encrypted_708bef23737d_iv -in heptio-images-ee4b0474b93e.json.enc -out ./heptio-images-ee4b0474b93e.json -d
+ - gcloud auth activate-service-account --key-file heptio-images-ee4b0474b93e.json
+ - DOCKER="gcloud docker -- " make container push
on:
# latest and tag only pushed when tag is exact match
repo: heptio/sonobuoy
