Open gulpinDev opened 9 months ago
Maybe try running in the args --trust-builder
or enable your build service account to have Artifact registry service account permissions.
@kennethye1 thank you for the suggestions, but it doesn't solve the issue. i think this is related to the Go version
Ah I see, you're using Go. You should fix it with --env GOOGLE_RUNTIME_VERSION=1.21
.
You actually need to give the full semver version number for the runtime version, so your project.toml
needs to be:
[[build.env]]
name = "GOOGLE_RUNTIME_VERSION"
value = "1.17"
My code to build the image and push it to Artifact Registry:
The command I run:
gcloud builds submit --region=europe-west1 --config=cloudbuild.yaml
what it returns:
My project.toml:
can someone help me understand what is wrong here and how to solve it?
thanks in advance