-
Notifications
You must be signed in to change notification settings - Fork 64
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
[Devtools Week] Investigate usage of renovate to keep registry image up-to-date #1126
Comments
I've added a renovate bot for my fork, following this tutorial. Investigating usage for the bot with this config: https://github.com/thepetk/registry/blob/main/renovate.json |
I'm currently investigating the correct configuration of renovate. A first result can be found here: https://github.com/thepetk/registry/pulls Notes:
|
I've listed all images that cannot be updated due to invalid tags:
|
I've checked other configurations of renovate inside |
There might be a PR coming to change |
@michael-valdron I've tried to add fixed values to all of the above images in this commit [73febe1b7bb750ba7fbc934db55873ab2e33b3f3] (thepetk/registry@73febe1) |
From the above images, if we fix the tag in all of them I see:
The only image not able to be updated I see is quay.io/devfile/universal-developer-image:
|
I'll now check if there is a way to fix the regex manager and checking as tag the |
For using it on samples:
|
Invesigating the update of github-actions (following documentation here). The trickiest part if we want to include renovate to all the repos will be to combine the configuration for devfile with the configuration for github-actions |
I see is pretty simple to combine the two actions (devfile images & github-actions). Github Actions & Renovate Results:
For specific action updates we have:
As we are not using digest, the first PR is dedicated to pin digest everywhere so as a first time it might conflicts with the updates. Now looking for actions that we weren't able to update |
FInal thing to investigate before opening a PR, is if the usage of packageRules will improve the configuration of renovate |
As a result of this investigation issue, I'd say that we should add a renovate bot in our repos. Moreover: Registry Images UpdateFor images mentioned inside devfiles, I've tried using a custom Every new update has its own PR, as it might need different approach on testing etc. Note, that renovate cannot update tags that have Some of the PRs we will see on the first run right now on registry would be:
Github Actions UpdateFor github actions I've introduced the An example of github actions PR would be: Configuration used for InvestigationThis is the proposed configuration for renovate. After bot installation, the bot will create a PR called {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
// Using this helper in order to pin digest of github action
"helpers:pinGitHubActionDigests"
],
// Helps the bot only to run these managers and skip all others
"enabledManagers": ["regex", "github-actions"],
"regexManagers": [
{
// Using regex manager to define a custom way to fetch devfile image tags
"fileMatch": [
"devfile.*y[a]?ml$"
],
"matchStrings": [
"image: (?<depName>\\S*):(?<currentValue>\\S*)"
],
"datasourceTemplate": "docker",
"depNameTemplate": "{{{depName}}}"
}
],
"packageRules": [
// Grouping github-actions in order to reduce renovate PR noise
{
"matchManagers": ["github-actions"],
"groupName": "github actions",
"groupSlug": "github-actions",
"commitMessageTopic": "{{depName}}"
}
],
// Ignoring these paths in order to reduce PR noise
"ignorePaths": [
"**/docker/**",
".ci/**",
"tests/**"
]
} Configuration of RenovateAs I've seen in other issues inside
Automatic Alizer UpdateFor alizer, as it is a go module used by another application we can follow this docs and using a Next stepsAs a next step for renovate bot we should add the renovate bot to The bot creation process requires a specific level of access to the org and is pretty simple following this guide. |
I've created a new issue, dedicated only to next steps sections (#1133) |
Which area/kind this issue is related to?
/area registry
Issue Description
In order to be sure that we the images used from registry stacks are always up-to-date we can investigate a tool like renovate.
More details for renovate here: https://github.com/renovatebot/renovate
Target Odo version
The text was updated successfully, but these errors were encountered: