Created
January 18, 2019 07:57
-
-
Save sideshowbandana/794262b8518e3135caef98bc1688e94a to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
set -e | |
echo $GCLOUD_SERVICE_KEY > $HOME/gcloud-service-key.json | |
gcloud auth activate-service-account --key-file=$HOME/gcloud-service-key.json | |
gcloud --quiet config set project ${GOOGLE_PROJECT_ID} | |
gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE} | |
gcloud --quiet container clusters get-credentials ${GOOGLE_CLUSTER_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment