Open thiago-almeida-t0ca opened 3 weeks ago
I am facing the same issue 👍
@prabhu34 I am facing the same issue
Thanks for reaching out. It has to either public repo (which don't need authentication) or the custom repo which probably needs access.
Do not add public_repository
as null or add a condition. Can you raise a PR with the changes?
First of all, thanks for the awesome work with this module, it really encapsulates well all the possibilities in a well organized way.
With that said, I think there's an issue with remote repositories using custom uri, at least for remote docker repos.
This is my config:
It gives me the following error:
Since we have the
public_repository = optional(string, "DOCKER_HUB")
with a default value set, it conflicts with whatever I try to set on thecustom_repository
object.To avoid it I believe we should either not set a default value for
public_repository
or add the following logic on the module:To only use the default value if
custom_repository
is not set.Let me know if I made any mistakes on wrong assumptions here.