Skip to content

Commit 9517e9b

Browse files
Copilotalessfg
andcommitted
Enable Docker layer caching for PR pipeline image sharing
Co-authored-by: alessfg <[email protected]>
1 parent 9cdc84f commit 9517e9b

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

.github/workflows/alpine-mainline.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ jobs:
117117
annotations: ${{ steps.meta.outputs.annotations }}
118118
tags: ${{ steps.meta.outputs.tags }}
119119
push: ${{ github.event_name != 'pull_request' }}
120-
# cache-from: type=gha,scope=alpine-slim
121-
# cache-to: type=gha,mode=min,scope=alpine-slim
120+
cache-from: type=gha,scope=alpine-slim
121+
cache-to: type=gha,mode=min,scope=alpine-slim
122122

123123
- name: Sign Docker Hub Manifest
124124
if: ${{ github.event_name != 'pull_request' }}
@@ -235,8 +235,8 @@ jobs:
235235
annotations: ${{ steps.meta.outputs.annotations }}
236236
tags: ${{ steps.meta.outputs.tags }}
237237
push: ${{ github.event_name != 'pull_request' }}
238-
# cache-from: type=gha,scope=debian-perl
239-
# cache-to: type=gha,mode=min,scope=debian-perl
238+
cache-from: type=gha,scope=alpine
239+
cache-to: type=gha,mode=min,scope=alpine
240240

241241
- name: Sign Docker Hub Manifest
242242
if: ${{ github.event_name != 'pull_request' }}
@@ -353,8 +353,8 @@ jobs:
353353
annotations: ${{ steps.meta.outputs.annotations }}
354354
tags: ${{ steps.meta.outputs.tags }}
355355
push: ${{ github.event_name != 'pull_request' }}
356-
# cache-from: type=gha,scope=alpine-perl
357-
# cache-to: type=gha,mode=min,scope=alpine-perl
356+
cache-from: type=gha,scope=alpine-perl
357+
cache-to: type=gha,mode=min,scope=alpine-perl
358358

359359
- name: Sign Docker Hub Manifest
360360
if: ${{ github.event_name != 'pull_request' }}
@@ -471,8 +471,8 @@ jobs:
471471
annotations: ${{ steps.meta.outputs.annotations }}
472472
tags: ${{ steps.meta.outputs.tags }}
473473
push: ${{ github.event_name != 'pull_request' }}
474-
# cache-from: type=gha,scope=alpine-otel
475-
# cache-to: type=gha,mode=min,scope=alpine-otel
474+
cache-from: type=gha,scope=alpine-otel
475+
cache-to: type=gha,mode=min,scope=alpine-otel
476476

477477
- name: Sign Docker Hub Manifest
478478
if: ${{ github.event_name != 'pull_request' }}

.github/workflows/alpine-stable.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ jobs:
113113
annotations: ${{ steps.meta.outputs.annotations }}
114114
tags: ${{ steps.meta.outputs.tags }}
115115
push: ${{ github.event_name != 'pull_request' }}
116-
# cache-from: type=gha,scope=stable-alpine-slim
117-
# cache-to: type=gha,mode=min,scope=stable-alpine-slim
116+
cache-from: type=gha,scope=stable-alpine-slim
117+
cache-to: type=gha,mode=min,scope=stable-alpine-slim
118118

119119
- name: Sign Docker Hub Manifest
120120
if: ${{ github.event_name != 'pull_request' }}
@@ -223,8 +223,8 @@ jobs:
223223
annotations: ${{ steps.meta.outputs.annotations }}
224224
tags: ${{ steps.meta.outputs.tags }}
225225
push: ${{ github.event_name != 'pull_request' }}
226-
# cache-from: type=gha,scope=stable-alpine
227-
# cache-to: type=gha,mode=min,scope=stable-alpine
226+
cache-from: type=gha,scope=stable-alpine
227+
cache-to: type=gha,mode=min,scope=stable-alpine
228228

229229
- name: Sign Docker Hub Manifest
230230
if: ${{ github.event_name != 'pull_request' }}
@@ -333,8 +333,8 @@ jobs:
333333
annotations: ${{ steps.meta.outputs.annotations }}
334334
tags: ${{ steps.meta.outputs.tags }}
335335
push: ${{ github.event_name != 'pull_request' }}
336-
# cache-from: type=gha,scope=stable-alpine-perl
337-
# cache-to: type=gha,mode=min,scope=stable-alpine-perl
336+
cache-from: type=gha,scope=stable-alpine-perl
337+
cache-to: type=gha,mode=min,scope=stable-alpine-perl
338338

339339
- name: Sign Docker Hub Manifest
340340
if: ${{ github.event_name != 'pull_request' }}
@@ -442,8 +442,8 @@ jobs:
442442
annotations: ${{ steps.meta.outputs.annotations }}
443443
tags: ${{ steps.meta.outputs.tags }}
444444
push: ${{ github.event_name != 'pull_request' }}
445-
# cache-from: type=gha,scope=stable-alpine-otel
446-
# cache-to: type=gha,mode=min,scope=stable-alpine-otel
445+
cache-from: type=gha,scope=stable-alpine-otel
446+
cache-to: type=gha,mode=min,scope=stable-alpine-otel
447447

448448
- name: Sign Docker Hub Manifest
449449
if: ${{ github.event_name != 'pull_request' }}

.github/workflows/debian-mainline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ jobs:
118118
annotations: ${{ steps.meta.outputs.annotations }}
119119
tags: ${{ steps.meta.outputs.tags }}
120120
push: ${{ github.event_name != 'pull_request' }}
121-
# cache-from: type=gha,scope=debian-perl
122-
# cache-to: type=gha,mode=min,scope=debian-perl
121+
cache-from: type=gha,scope=debian
122+
cache-to: type=gha,mode=min,scope=debian
123123

124124
- name: Sign Docker Hub Manifest
125125
if: ${{ github.event_name != 'pull_request' }}
@@ -237,8 +237,8 @@ jobs:
237237
annotations: ${{ steps.meta.outputs.annotations }}
238238
tags: ${{ steps.meta.outputs.tags }}
239239
push: ${{ github.event_name != 'pull_request' }}
240-
# cache-from: type=gha,scope=debian-perl
241-
# cache-to: type=gha,mode=min,scope=debian-perl
240+
cache-from: type=gha,scope=debian-perl
241+
cache-to: type=gha,mode=min,scope=debian-perl
242242

243243
- name: Sign Docker Hub Manifest
244244
if: ${{ github.event_name != 'pull_request' }}
@@ -355,8 +355,8 @@ jobs:
355355
annotations: ${{ steps.meta.outputs.annotations }}
356356
tags: ${{ steps.meta.outputs.tags }}
357357
push: ${{ github.event_name != 'pull_request' }}
358-
# cache-from: type=gha,scope=debian-otel
359-
# cache-to: type=gha,mode=min,scope=debian-otel
358+
cache-from: type=gha,scope=debian-otel
359+
cache-to: type=gha,mode=min,scope=debian-otel
360360

361361
- name: Sign Docker Hub Manifest
362362
if: ${{ github.event_name != 'pull_request' }}

.github/workflows/debian-stable.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ jobs:
114114
annotations: ${{ steps.meta.outputs.annotations }}
115115
tags: ${{ steps.meta.outputs.tags }}
116116
push: ${{ github.event_name != 'pull_request' }}
117-
# cache-from: type=gha,scope=stable-debian
118-
# cache-to: type=gha,mode=min,scope=stable-debian
117+
cache-from: type=gha,scope=stable-debian
118+
cache-to: type=gha,mode=min,scope=stable-debian
119119

120120
- name: Sign Docker Hub Manifest
121121
if: ${{ github.event_name != 'pull_request' }}
@@ -225,8 +225,8 @@ jobs:
225225
annotations: ${{ steps.meta.outputs.annotations }}
226226
tags: ${{ steps.meta.outputs.tags }}
227227
push: ${{ github.event_name != 'pull_request' }}
228-
# cache-from: type=gha,scope=stable-debian-perl
229-
# cache-to: type=gha,mode=min,scope=stable-debian-perl
228+
cache-from: type=gha,scope=stable-debian-perl
229+
cache-to: type=gha,mode=min,scope=stable-debian-perl
230230

231231
- name: Sign Docker Hub Manifest
232232
if: ${{ github.event_name != 'pull_request' }}
@@ -335,8 +335,8 @@ jobs:
335335
annotations: ${{ steps.meta.outputs.annotations }}
336336
tags: ${{ steps.meta.outputs.tags }}
337337
push: ${{ github.event_name != 'pull_request' }}
338-
# cache-from: type=gha,scope=stable-debian-otel
339-
# cache-to: type=gha,mode=min,scope=stable-debian-otel
338+
cache-from: type=gha,scope=stable-debian-otel
339+
cache-to: type=gha,mode=min,scope=stable-debian-otel
340340

341341
- name: Sign Docker Hub Manifest
342342
if: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)