Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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
- steps:
- # Build Docker image.
- - name: gcr.io/cloud-builders/docker
- args: ['build', '-t', 'gcr.io/$PROJECT_ID/gcdc-nd1yr-team11:${SHORT_SHA}', '.']
- # Push the built image to Google Container Registry
- - name: 'gcr.io/cloud-builders/docker'
- args: ["push", "gcr.io/$PROJECT_ID/gcdc-nd1yr-team11"]
- # Deploy the container image to a container on Cloud Run
- - name: 'gcr.io/cloud-builders/gcloud'
- 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