Within your application source code directory, if you run gcloud run deploy
, you’ll be using --source .
deployments. This method will build your container using a Dockerfile (if it exists), or use Cloud Buildpacks (for supported languages). Behind the scenes, the first time you run this command in your project, it will create an Artifact Registry called cloud-run-source-deploy
in the same region as your service.
The run deploy
method also is a nice helper around the combination gcloud builds submit; gcloud run deploy --image
command, that may be familiar you.
Once your service has been deployed, you can find the image that was created by interrogating the service with gcloud run services describe
, or getting the value specifically:
gcloud run services describe yourservice \
--region yourregion \
--format "value(spec.template.spec.containers[0].image)"
Developer processes change over time, but as platforms evolve, the experience should improve developer quality of life. With Source Deploys’ integrated functionality in other parts of the deployment pipeline, you can spend less time deploying and more time coding. ✨
With thanks to Jennifer Davis for reviewing this post!