Objective:
1. build source code (docker image)
2. upload to artifact registry
3. deploy to cloud run
I was trying to do it like this in a cloud.yaml file:
Looking at your logic, it seems that currently you are executing Cloud Build that builds a docker image and stores the result. You are then running a shell script which we don't know what it does. Based on this, should we assume that the script tried to deploy the image to Cloud Run? If not, what does the script do?
You can consider using Cloud Deploy to perform the deployment. A deployment (rollout) is based on a release. The release, the rollout, and the logs associated with the deployment are available after a deployment. You can also perform canary deployments with Cloud Deploy. You can find a quickstart, here.