How to deploy Turboship, a Nuxt3 app, on GCP infrastructure
I suggest you expose your app on port 8080 as it's the default GCP Cloud Run uses.
I've added
--platform linux/amd64because of this bug/post I ran into.
The repo will hold your images.
Tag your local image following GCP docs/conventions.
It's important to have the
region-datacenter-docker.pkg/project-id/repo-name/image-name
In other words the tag's mapping is as follows:
us-central1turboship-devrepo-nameimage-nameTo build on your local you'll need to be authenticated(as opposed to building in GCP console).
GCP needs a copy of the image. Artifact registry holds it while Cloud Run deploys/hosts it.
A success means something like this back:
https://dev.to/sakko/deploying-nuxtjs-on-google-cloud-run-1fic
gcloud builds submit --project "project-name" --config=./cloud-build.yaml
gcloud logging read "resource.type="cloud_run_revision" AND resource.labels.service_name="turboship"" --project=turboship-dev --limit=1000