3 ms·
I finally settled on this but it wasn’t easy either. I had to create: - an artifact repository and a Docker repository, because cloud run refuses to run image
by thiht 5y ago
I finally settled on this but it wasn’t easy either.
I had to create:
- an artifact repository and a Docker repository, because cloud run refuses to run images from a different repository
- a service account (in a completely different section)
- add the correct role on the account, in yet another section
- retrieve the password, the username and url of the Docker repo (I had to read blog articles to find these)
- and then finally push my image.
Configuring the container was easy after that, but I haven’t found yet how to configure continuous deployment from my CI pipeline. I guess I’ll have to use the gcp cli but it doesn’t seem obvious how to do it.
- nreece 5y agoIt's usually just one command: gcloud run deploy See 'Deploying to Cloud Run from source': https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-nodejs-service#deploy https://cloud.google.com/run/docs/quickstarts/build-and-depl... I also like deploying to Cloud Run right from Cloud Shell Editor (their web IDE, viz like VS Code in the browser): https://shell.cloud.google.com https://shell.cloud.google.com