Created
July 7, 2019 20:55
-
-
Save jtubert/df0f0d00d518a0a91a1c8c5dbd6f7e42 to your computer and use it in GitHub Desktop.
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
steps: | |
# build the container image | |
- name: 'gcr.io/cloud-builders/docker' | |
args: ['build', '-t', 'gcr.io/my-project/my-build', '.'] | |
# push the container image to Container Registry | |
- name: 'gcr.io/cloud-builders/docker' | |
args: ['push', 'gcr.io/my-project/my-build'] | |
# Deploy container image to Cloud Run | |
- name: 'gcr.io/cloud-builders/gcloud' | |
args: ['beta', 'run', 'deploy', 'my-build', '--allow-unauthenticated', '--image', 'gcr.io/my-project/my-build', '--region', 'us-central1', '--memory', '2G', '--timeout=15m'] | |
images: | |
- gcr.io/my-project/my-build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment