Skip to content

Instantly share code, notes, and snippets.

@kooooohe
Created January 20, 2020 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kooooohe/5897d8992f05ac6bf486c50424efa95c to your computer and use it in GitHub Desktop.
Save kooooohe/5897d8992f05ac6bf486c50424efa95c 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/$PROJECT_ID/todo-notify', '-f', 'Dockerfile.prod', '.']
# Push the image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/todo-notify']
# Deploy image to Cloud Run
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'run', 'deploy', 'todo-notify', '--image', 'gcr.io/$PROJECT_ID/todo-notify', '--region', 'us-central1', '--platform', 'managed']
images:
- gcr.io/$PROJECT_ID/todo-notify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment