Skip to content

Commit

Permalink
Bring back the earthly target to update luet repos (#132)
Browse files Browse the repository at this point in the history
* Bring back the earthly target to update luet repos

because renovate doesn't seem to understand our image versioning

It was first introduced here:

cc8b857#diff-2705f6016a64189abd14041e2f3e8dbb829553295d9088e4eb42eccb5e61bf47R84

(when we migrated it from enki)

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Remove duplicate files and use the ones we bump

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Try to make renovate work too

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Remove targets again because Itxaka think renovate will work

and if it doesn't, Itxaka promised to fix it

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily authored Dec 5, 2024
1 parent ea4a7fb commit ea77e08
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ ENV LUET_NOLOCK=true
ENV TMPDIR=/tmp
ARG TARGETARCH
# copy both arches
COPY luet-arm64.yaml /tmp/luet-arm64.yaml
COPY luet-amd64.yaml /tmp/luet-amd64.yaml
COPY image-assets/luet-arm64.yaml /tmp/luet-arm64.yaml
COPY image-assets/luet-amd64.yaml /tmp/luet-amd64.yaml
# Set the default luet config to the current build arch
RUN mkdir -p /etc/luet/
RUN cp /tmp/luet-${TARGETARCH}.yaml /etc/luet/luet.yaml
Expand Down
2 changes: 1 addition & 1 deletion image-assets/luet-amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ repositories:
urls:
- "quay.io/kairos/packages"
# renovate: datasource=docker depName=quay.io/kairos/packages
reference: 202411120825-git6d3d6215-repository.yaml
reference: 202412041137-gitd6a8038f-repository.yaml
2 changes: 1 addition & 1 deletion image-assets/luet-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ repositories:
urls:
- "quay.io/kairos/packages-arm64"
# renovate: datasource=docker depName=quay.io/kairos/packages-arm64
reference: 202411120835-git6d3d6215-repository.yaml
reference: 202412041121-gitd6a8038f-repository.yaml
16 changes: 0 additions & 16 deletions luet-amd64.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions luet-arm64.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,27 @@
"patch"
],
"automerge": true
},
{
"groupName": "repositories",
"matchPackageNames": [
"/^quay.io/kairos/packages*/"
]
},
{
"versioning": "regex:^(?<major>\\d{12})-git(?<patch>[a-f0-9]{8})-repository\\.yaml$",
"matchPackageNames": [
"/^quay.io/kairos/packages*/"
]
},
{
"enabled": true,
"matchDatasources": [
"docker"
],
"matchUpdateTypes": [
"major"
]
}
],
"customManagers": [
Expand Down

0 comments on commit ea77e08

Please sign in to comment.