-
-
Save manualwise/b11c4422ec6bc560d94e7ec99eef5070 to your computer and use it in GitHub Desktop.
Codeship Kubernetes Deploy
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 | |
# authenticate to google cloud | |
codeship_google authenticate | |
# set compute zone | |
gcloud config set compute/zone us-central1-a | |
# set kubernetes cluster | |
gcloud container clusters get-credentials cluster-name | |
# update kubernetes Deployment | |
GOOGLE_APPLICATION_CREDENTIALS=/keyconfig.json kubectl set image deployment/deployment-name app=gcr.io/project-name/app-name:$CI_TIMESTAMP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment