Commit e1232d4
authored
Migrate to self-hosted renovate (#4010)
In order to properly run renovate with python dependencies that require
system packages (see
[failure](#4432 (comment)))
we have to run renovate as
[self-hosted](https://docs.renovatebot.com/examples/self-hosting/) and
embed the dependencies needed in the renovate runner to be able to run
`uv sync`.
A breakdown of how this works:
- `containers/Containerfile.renovate`: Inherits from upstream [renovate
image](https://github.com/renovatebot/renovate/blob/main/tools/docker/Dockerfile)
aka ghcr.io/renovatebot/renovate
- `build-and-publish-renovate.yml`: Whenever the file above is updated
or if run manually, this workflow build the container as
`renovate-tmt:latest` and publishes it to this repo's [github container
respository](https://github.com/teemtee/tmt/pkgs/container/renovate-tmt)
- `renovate.yml`: Using the container above, this workflow basically
runs renovate itself using the `renovate-config.json` for the runner,
after which it is equivalent with the hosted renovate
- In order for Github Actions to be run on PRs created by a different
github action, a token other than `${github.token}` must be used. In
this case a Github app will be created and owned at the teemtee
organization which is then fed into `actions/create-github-app-token` to
get the final token that renovate would be using. See
[renovatebot/github-action
example](https://github.com/renovatebot/github-action?tab=readme-ov-file#example-with-github-app)
for more explanation
Besides the workflow above, to make sure everything is working correctly
this PR reconfigures `renovate.json` as well:
- Simplify the `Documentation Dependencies` flow. Something is probably
still missing to properly make the PRs for these, but will continue this
work afterwards
- Drop the hatch devDependencies
- Enable the python dependency update for everything. This probably
needs more fine-tuning probably with
[`lockFileMaintenance`](https://docs.astral.sh/uv/guides/integration/dependency-bots/#renovate)
---------
Signed-off-by: Cristian Le <git@lecris.dev>1 parent 3091c54 commit e1232d4
5 files changed
Lines changed: 101 additions & 17 deletions
File tree
- .github
- workflows
- containers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 48 | + | |
62 | 49 | | |
63 | 50 | | |
64 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments