|
3 | 3 |
|
4 | 4 | // After making changes to this file, you can validate it by running something like this in the root of the repo:
|
5 | 5 | // $ docker run --rm -it --entrypoint=renovate-config-validator -v "$(pwd)":/mnt -w /mnt renovate/renovate --strict
|
| 6 | + // Note: ignore errors about the config for `rpm`. This is to be addressed with https://issues.redhat.com/browse/CWFHEALTH-4117 |
6 | 7 | // There are more validation options, see https://docs.renovatebot.com/config-validation/
|
7 | 8 |
|
8 | 9 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
9 | 10 | "extends": [
|
10 |
| - // This inherits the base Konflux config. |
11 |
| - // Clickable link https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json |
12 |
| - // The following was used as example (we may want to check it if the base config gets suddenly moved): |
| 11 | + // Note that the base Konflux's MintMaker config gets inherited/included automatically per |
| 12 | + // https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1745492139282819?thread_ts=1745309786.090319&cid=C04PZ7H0VA8 |
| 13 | + // The config is: https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json |
| 14 | + // We found out about it here (we may want to check that location if the base config gets suddenly moved): |
13 | 15 | // https://github.com/enterprise-contract/ec-cli/blob/407847910ad420850385eea1db78e2a2e49c7e25/renovate.json#L1C1-L7C2
|
14 |
| - "github>konflux-ci/mintmaker//config/renovate/renovate.json", |
15 |
| - // This tells Renovate to combine all updates in one PR so that we have less PRs to deal with. |
| 16 | + |
| 17 | + // This tells Renovate to combine all updates in one PR so that we have fewer PRs to deal with. |
16 | 18 | "group:all",
|
17 | 19 | ],
|
18 | 20 | "timezone": "Etc/UTC",
|
|
27 | 29 | "updateNotScheduled": false,
|
28 | 30 | "tekton": {
|
29 | 31 | "schedule": [
|
30 |
| - // For some reason, Konflux config defines custom schedule on each type of dependency manager and that takes |
31 |
| - // precedence over the global/default schedule. We want our own schedule and hence need to make this override. |
| 32 | + // Override Konflux custom schedule for this manager to our intended one. |
32 | 33 | "after 3am and before 7am",
|
33 | 34 | ],
|
| 35 | + "packageRules": [ |
| 36 | + // Note: the packageRules from the Konflux config (find URL in comments above) get merged with these. |
| 37 | + { |
| 38 | + "groupName": "StackRox custom Konflux Tasks", |
| 39 | + "matchPackageNames": [ |
| 40 | + "/^quay.io/rhacs-eng/konflux-tasks/", |
| 41 | + ], |
| 42 | + }, |
| 43 | + ], |
34 | 44 | },
|
35 | 45 | "dockerfile": {
|
36 | 46 | "includePaths": [
|
37 | 47 | // Instruct Renovate not try to update Dockerfiles other than konflux.Dockerfile (or konflux.anything.Dockerfile)
|
38 | 48 | // to have less PR noise.
|
39 | 49 | "**/*konflux*.Dockerfile",
|
40 | 50 | ],
|
| 51 | + "schedule": [ |
| 52 | + // Override Konflux custom schedule for this manager to our intended one. |
| 53 | + "after 3am and before 7am", |
| 54 | + ], |
| 55 | + "postUpgradeTasks": { |
| 56 | + "commands": [ |
| 57 | + // Refresh the rpm lockfile after updating image references in the dockerfile. |
| 58 | + "rpm-lockfile-prototype rpms.in.yaml", |
| 59 | + ], |
| 60 | + }, |
| 61 | + }, |
| 62 | + "rpm": { |
| 63 | + "schedule": [ |
| 64 | + // Override Konflux custom schedule for this manager to our intended one. |
| 65 | + "after 3am and before 7am", |
| 66 | + ], |
41 | 67 | },
|
42 | 68 | "enabledManagers": [
|
43 | 69 | // Restrict Renovate focus on Konflux things since we rely on GitHub's dependabot for everything else.
|
44 | 70 | "tekton",
|
45 | 71 | "dockerfile",
|
| 72 | + "rpm", |
46 | 73 | ],
|
47 | 74 | }
|
0 commit comments