Skip to content

Instantly share code, notes, and snippets.

@JaniKibichi
Created June 30, 2021 10:05
Show Gist options
  • Save JaniKibichi/0116f7ba1e67a7c5dc55c6a9af4a9016 to your computer and use it in GitHub Desktop.
Save JaniKibichi/0116f7ba1e67a7c5dc55c6a9af4a9016 to your computer and use it in GitHub Desktop.
Cloudbuild file for ussd
steps:
# build the container image
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-t", "gcr.io/smart-surf-285319/ussdapi", "."]
# push container image
- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/smart-surf-285319/ussdapi"]
# deploy container image to GKE
- name: "gcr.io/cloud-builders/gke-deploy"
args:
- run
- --filename=deployment.yaml
- --image=gcr.io/smart-surf-285319/ussdapi
- --location=us-central1-a
- --cluster=ussd-cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment