Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  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']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement