GitLab CI manager doesn't support usage of environment variables in includes #27964
-
What would you like help with?I think I found a bug How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitLab 16.9, Renovate 37.250 Please tell us more about your question or problemWe started to use GitLab ci components just recently, and realized that renovate bot is supporting updating those as well. In the official documentation GitLab references the GitLab server using the When we wanted to use renovate to update our components, we didn't get any pull requests, and saw in the logs that the authentication with the GitLab server failed, when trying to lookup the components version (see logs below). Digging into it, we realized that the I think adding a hint in the documentation that the environment variables aren't resolved, might help other solve the issue faster, while at the same time avoiding any security issues, that might arise if renovate would resolve the environment variable if present in the string. Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
In your example how does this variable value compare to the |
Beta Was this translation helpful? Give feedback.
-
Example from GitLab docs:
@viceice @secustor do you think there's any problem if we do env substitution for extraction in this case? |
Beta Was this translation helpful? Give feedback.
-
I think it would great for the GitLab CI manager to support registry alias so I've created a PR adding that support: #28607 With that improvement, configuration like the following in Renovate's {
"registryAliases": {
"$CI_SERVER_FQDN": process.env.CI_SERVER_FQDN,
"$CI_SERVER_HOST": process.env.CI_SERVER_HOST
}
} |
Beta Was this translation helpful? Give feedback.
I think it would great for the GitLab CI manager to support registry alias so I've created a PR adding that support: #28607
With that improvement, configuration like the following in Renovate's
config.js
(following the documentation at https://docs.renovatebot.com/configuration-options/#registryaliases), addresses this need: