Secrets and variables usage best practices #3130
-
Hello, here is a part of my .woodpecker file :
My local_registry secret is I would like to use something like And in the end, the registry and repo settings are almost the same, like :
Or, question B : is there a setting to auto-generate the "repo" setting when a local docker registry is used ? Best regards and thank you :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm not completely sure whether this works, but you could try to use global env vars together with env var subsitution.
I think you can have multiple repos on a local registry, how should we be able to auto-generate it? |
Beta Was this translation helpful? Give feedback.
-
Thank you ! Indeed, using
Yeah !
If the "repo" prefix is always the value of the registry setting, it could have been a solution :)
|
Beta Was this translation helpful? Give feedback.
I'm not completely sure whether this works, but you could try to use global env vars together with env var subsitution.
I think you can have multiple repos on a local registry, how should we be able to auto-generate it?