Skip to content

Instantly share code, notes, and snippets.

@JaniKibichi
Created June 29, 2021 15:22
Show Gist options
  • Save JaniKibichi/23a9509c2e2f8721d5ca3b7ac8646132 to your computer and use it in GitHub Desktop.
Save JaniKibichi/23a9509c2e2f8721d5ca3b7ac8646132 to your computer and use it in GitHub Desktop.
To GKE
steps:
# build the container image
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-t", "gcr.io/vivo-ussd-november-26th-2019/bboxxapi", "."]
# push container image
- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/vivo-ussd-november-26th-2019/bboxxapi"]
# deploy container image to GKE
- name: "gcr.io/cloud-builders/gke-deploy"
args:
- run
- --filename=deployment.yaml
- --image=gcr.io/vivo-ussd-november-26th-2019/bboxxapi
- --location=us-central1-a
- --cluster=bboxx-cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment