Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Add .dockerignore file, move gcloud auth command to travis (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Jun 20, 2017
1 parent 9049287 commit b48c0d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .dockerignore
@@ -0,0 +1,4 @@
# exclude top-level credential files:
/service_key.json
/client_secret*.json
/travis_secrets.tar.gz
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -47,6 +47,8 @@ before_deploy:
curl https://sdk.cloud.google.com | bash; fi curl https://sdk.cloud.google.com | bash; fi
- openssl aes-256-cbc -K $encrypted_a1eb99cfc21e_key -iv $encrypted_a1eb99cfc21e_iv -in travis_secrets.tar.gz.enc -out travis_secrets.tar.gz -d - openssl aes-256-cbc -K $encrypted_a1eb99cfc21e_key -iv $encrypted_a1eb99cfc21e_iv -in travis_secrets.tar.gz.enc -out travis_secrets.tar.gz -d
- tar -xzf travis_secrets.tar.gz - tar -xzf travis_secrets.tar.gz
- gcloud auth activate-service-account --key-file service_key.json
- rm -f service_key.json
- gcloud --quiet version - gcloud --quiet version
- sudo gcloud --quiet components update kubectl - sudo gcloud --quiet components update kubectl


Expand Down
1 change: 0 additions & 1 deletion scripts/deploy.sh
Expand Up @@ -37,7 +37,6 @@ function main()


function initGcloud() function initGcloud()
{ {
gcloud auth activate-service-account --key-file service_key.json
gcloud config set project ${PROJECT_NAME} gcloud config set project ${PROJECT_NAME}
gcloud config set compute/zone us-central1-a gcloud config set compute/zone us-central1-a
gcloud container clusters get-credentials ci-cluster gcloud container clusters get-credentials ci-cluster
Expand Down

0 comments on commit b48c0d1

Please sign in to comment.