Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating Service: googleapi: Error 400: spec.template.spec.containers[0].image: Expected an image path like [host/]repo-path[:tag and/or @digest] #205

Open
mattn opened this issue Dec 15, 2024 · 3 comments

Comments

@mattn
Copy link

mattn commented Dec 15, 2024

I'm trying provider-examples/cloudrun but

Error: Error creating Service: googleapi: Error 400: spec.template.spec.containers[0].image: Expected an image path like [host/]repo-path[:tag and/or @digest], where host is one of [region.]gcr.io, [region-]docker.pkg.dev or docker.io but obtained ghcr.io/mattn/terraform-provier-ko-example/github.com/ko-build/terraform-provider-ko/cmd/test@sha256:1c084931f385ea9a5dabb8ed079c1633dbb509c21c9d292f53e551394ddac53a

What is wrong?

@imjasonh
Copy link
Member

This error message is (cryptically) telling you that Cloud Run only supports deploying images on GCP's Artifact Registry or (legacy) GCR. Pushing the image to GHCR won't work, unfortunately.

If you try this with a GAR/GCR repo and it doesn't work, please let me know!

@imjasonh
Copy link
Member

#206

@mattn
Copy link
Author

mattn commented Dec 18, 2024

How to pass --bare or --tags-only into terraform process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants