ci: add dnf cache

This commit is contained in:
Job
2025-12-29 15:33:46 +01:00
parent 32bbe1c2cd
commit 4e1737f5b3
3 changed files with 9 additions and 9 deletions

View File

@@ -2,8 +2,8 @@ ARG TAG
FROM job79/fedora:${TAG}
USER root
RUN dnf -y install kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r '.assets[] | select(.name | test("sops-.*.x86_64.rpm$")) | .browser_download_url')" && \
dnf clean all && \
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r '.assets[] | select(.name | test("sops-.*.x86_64.rpm$")) | .browser_download_url')" && \
curl -sL https://talos.dev/install | sh && \
curl -s https://fluxcd.io/install.sh | bash