Skip to content

Commit f37027a

Browse files
committed
Use build cache for passing GCC image
1 parent 055005a commit f37027a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/debian.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defaults:
1919
env:
2020
CONTAINER_REGISTRY: ghcr.io
2121
BUILDKIT_PROGRESS: plain
22-
LOCAL_GCC_IMAGE: localhost.localdomain/gcc
22+
LOCAL_GCC_IMAGE: ghcr.io/debian-gcc
2323
CONAN_VERSION: 2.19.1
2424
GCOVR_VERSION: 8.3
2525
CMAKE_VERSION: 3.31.6
@@ -106,6 +106,7 @@ jobs:
106106
outputs: type=image,name=${{ env.LOCAL_GCC_IMAGE }},push=false
107107
platforms: ${{ matrix.architecture.platform }}
108108
provenance: mode=max
109+
cache-to: type=local,dest=${{ runner.temp }}/cache
109110
push: false
110111
sbom: true
111112
tags: ${{ format('{0}:{1}-{2}', env.LOCAL_GCC_IMAGE, matrix.os.compiler_version, matrix.os.release) }}
@@ -143,6 +144,7 @@ jobs:
143144
outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
144145
platforms: ${{ matrix.architecture.platform }}
145146
provenance: mode=max
147+
cache-from: type=local,src=${{ runner.temp }}/cache
146148
push: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
147149
sbom: true
148150
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)