Google Cloud Run - Using GitHub for continuous deployment : Your build failed to run: generic::invalid_argument: invalid build: invalid image name

Viewed 645

After creating a successful build using gbuild I wanted to start the continues deployment function but on trigger it failed instantly with the name: Your build failed to run: generic::invalid_argument: invalid build: invalid image name

The answer is: don't use capital letters in your GitHub Repository Name as Google Cloud Run doesn't seem to like it and it causes that very vague error message

(Posting it here as a question/answer as it took my hours to figure out)

3 Answers

The answer is: don't use capital letters in your GitHub Repository Name as Google Cloud Run doesn't seem to like it and it causes that very vague error message

It indeed seems to be an issue with capital letters in the repo name. You can circumvent this issue by selecting the 'Mirror GitHub repository using Cloud Source Repositories' option.

If you are using the the repo name parameter with $ and the repo name contains capital letters, the build fails. This issue is related to the gcr image creation as the build starts. When I replaced the parameterized repo name with a lower case letters for the container name, instead of the capitalized repo name, for the gcr image location, my build went through.

Related