Skip to content

Instantly share code, notes, and snippets.

@Timtech4u
Created June 22, 2020 07:01
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 Timtech4u/cc6037c7febc76afb86098b8b8f31aba to your computer and use it in GitHub Desktop.
Save Timtech4u/cc6037c7febc76afb86098b8b8f31aba to your computer and use it in GitHub Desktop.
# File: cloudbuild.yaml
steps:
# build the container image
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'gcr.io/$PROJECT_ID/demo-app', '.' ]
# push the container image
- name: 'gcr.io/cloud-builders/docker'
args: [ 'push', 'gcr.io/$PROJECT_ID/demo-app']
# deploy to Cloud Run
- name: "gcr.io/cloud-builders/gcloud"
args: ['run', 'deploy', 'erp-ui', '--image', 'gcr.io/$PROJECT_ID/demo-app', '--region', 'europe-west4', '--platform', 'managed', '--allow-unauthenticated']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment