Skip to content

Instantly share code, notes, and snippets.

@jtubert
Created July 7, 2019 20:55
Show Gist options
  • Save jtubert/df0f0d00d518a0a91a1c8c5dbd6f7e42 to your computer and use it in GitHub Desktop.
Save jtubert/df0f0d00d518a0a91a1c8c5dbd6f7e42 to your computer and use it in GitHub Desktop.
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