Skip to content

Instantly share code, notes, and snippets.

@ScriptBytes
Created February 27, 2022 00:41
Show Gist options
  • Save ScriptBytes/9c5f6fa3dd6f1b0ffa46f5bd36f65f2a to your computer and use it in GitHub Desktop.
Save ScriptBytes/9c5f6fa3dd6f1b0ffa46f5bd36f65f2a to your computer and use it in GitHub Desktop.
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- '$_GCR_HOSTNAME/$PROJECT_ID/$_SERVICE_NAME:$COMMIT_SHA'
- .
- name: gcr.io/cloud-builders/docker
args:
- push
- '$_GCR_HOSTNAME/$PROJECT_ID/$_SERVICE_NAME:$COMMIT_SHA'
- name: gcr.io/google.com/cloudsdktool/cloud-sdk
args:
- run
- deploy
- $_SERVICE_NAME
- '--image'
- '$_GCR_HOSTNAME/$PROJECT_ID/$_SERVICE_NAME:$COMMIT_SHA'
- '--region'
- $_DEPLOY_REGION
- '--platform'
- $_PLATFORM
entrypoint: gcloud
timeout: 1200s
images:
- '$_GCR_HOSTNAME/$PROJECT_ID/$_SERVICE_NAME:$COMMIT_SHA'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment