ci: add dnf cache
Some checks failed
Build containers / changes (push) Successful in 3s
Build containers / base-image (push) Failing after 3s
Build containers / dependent-images (go) (push) Has been skipped
Build containers / dependent-images (infra) (push) Has been skipped

This commit is contained in:
Job
2025-12-29 15:33:46 +01:00
parent 32bbe1c2cd
commit 015b6bd3c5
4 changed files with 8 additions and 6 deletions

View File

@@ -49,6 +49,8 @@ jobs:
tags: ${{ github.ref_name }}
context: ./containers/fedora
containerfiles: ./containers/fedora/Containerfile
extra-args: |
--mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5
- name: Push
uses: redhat-actions/push-to-registry@v2
with:
@@ -96,6 +98,8 @@ jobs:
context: ./containers/${{ matrix.container }}
containerfiles: ./containers/${{ matrix.container }}/Containerfile
build-args: TAG=${{ github.ref_name }}
extra-args: |
--mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5
- name: Push
if: steps.check.outputs.run == 'true'
uses: redhat-actions/push-to-registry@v2