Add cache step for buildah layers

Add caching for buildah layers to improve build performance.
This commit is contained in:
humocs-man
2026-05-10 19:40:12 +02:00
committed by GitHub
parent 91a9b13f8a
commit 3a5f9a18d7
+13
View File
@@ -97,6 +97,19 @@ jobs:
sep-tags: " " sep-tags: " "
sep-annotations: " " sep-annotations: " "
# Hinzufügen vor dem "Build Image" Schritt:
- name: Cache buildah layers
uses: actions/cache@v4
with:
path: |
/var/lib/containers/storage/overlay
~/.cache/buildah
/tmp/.buildah-cache
key: ${{ runner.os }}-${{ github.workflow }}-${{ hashFiles('Containerfile') }}-${{ github.ref }}
restore-keys: |
${{ runner.os }}-${{ github.workflow }}-${{ hashFiles('Containerfile') }}-
- name: Build Image - name: Build Image
id: build_image id: build_image
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2 uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2