TL;DR If you see the error message in this article title when you run Cloud Build trigger, the Docker image name is too long to handle for GCP.
The default inline
cloudbuild.yaml which is auto-generated when we create Cloud Run service, defines docker image names as like the following.
However, the image name can be so long like
Seems like GCP has the limit for handling Docker image name and it is 100 characters at max. So, if the default definition does not work for your case, you can remove an element from the template like
$REPO_NAME. If the Docker image name gets shorter than 100, the build pipeline should work.
Hope this shorten your debug time !
Top comments (0)