Add cache step for buildah layers
Add caching for buildah layers to improve build performance.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user