SHARE
TWEET

Untitled

a guest Jun 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #As soon as the mergify configuration does its job and pushes to master branch, A Cloud Build instance will be triggered based on the hook attached to the repo. The hook is automatically created when we configure Cloud Build for this repo
  2. steps:
  3. # Build Docker image.
  4. - name: gcr.io/cloud-builders/docker
  5.   args: ['build', '-t', 'gcr.io/$PROJECT_ID/gcdc-nd1yr-team11:${SHORT_SHA}', '.']
  6. # Push the built image to Google Container Registry
  7. - name: 'gcr.io/cloud-builders/docker'
  8.   args: ["push", "gcr.io/$PROJECT_ID/gcdc-nd1yr-team11"]
  9. # Deploy the container image to a container on Cloud Run
  10. - name: 'gcr.io/cloud-builders/gcloud'
  11.   args: ['beta', 'run', 'deploy', 'gcdc-nd1yr-team11', '--image', 'gcr.io/$PROJECT_ID/gcdc-nd1yr-team11:${SHORT_SHA}', '--region', 'us-central1','--allow-unauthenticated']
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top