From 3a5f9a18d7db8f373ddff1b3ffaca7167aca3d22 Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sun, 10 May 2026 19:40:12 +0200 Subject: [PATCH] Add cache step for buildah layers Add caching for buildah layers to improve build performance. --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be94070..9d1f805 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -97,6 +97,19 @@ jobs: sep-tags: " " 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 id: build_image uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2