QuestionQ121

VerifiedDeploying applications

You developed a Python application that you want to containerize and deploy to Cloud Run. You created a Cloud Build pipeline with these steps:

Question Image

After triggering the pipeline, you see in the Cloud Build logs that its final step fails and the container cannot be deployed to Cloud Run. What causes this issue, and how should you fix it?

Explanation

A Docker build creates the tagged image only in the Cloud Build worker unless the configuration also pushes it or declares it in the images field. Cloud Run must be able to retrieve the referenced image from Artifact Registry, so the pipeline must push the application image to Artifact Registry before running gcloud run deploy.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!