Created
February 27, 2022 00:41
-
-
Save ScriptBytes/9c5f6fa3dd6f1b0ffa46f5bd36f65f2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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