@@ -94,11 +94,10 @@ jobs:
94
94
uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
95
95
with :
96
96
images : |
97
- docker.io/nginxinc/nginx-unprivileged
98
- ghcr.io/nginx/nginx-unprivileged
99
- public.ecr.aws/nginx/nginx-unprivileged
100
- quay.io/nginx/nginx-unprivileged
101
- ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || '' }}
97
+ ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || 'docker.io/nginxinc/nginx-unprivileged' }}
98
+ ${{ github.event_name != 'pull_request' && 'ghcr.io/nginx/nginx-unprivileged' || '' }}
99
+ ${{ github.event_name != 'pull_request' && 'public.ecr.aws/nginx/nginx-unprivileged' || '' }}
100
+ ${{ github.event_name != 'pull_request' && 'quay.io/nginx/nginx-unprivileged' || '' }}
102
101
tags : |
103
102
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine-slim
104
103
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine${{ needs.version.outputs.distro }}-slim
@@ -118,9 +117,9 @@ jobs:
118
117
labels : ${{ steps.meta.outputs.labels }}
119
118
annotations : ${{ steps.meta.outputs.annotations }}
120
119
tags : ${{ steps.meta.outputs.tags }}
121
- push : true
122
- cache-from : type=gha,scope=stable-alpine-slim
123
- cache-to : type=gha,mode=min,scope=stable-alpine-slim
120
+ push : ${{ github.event_name != 'pull_request' }}
121
+ # cache-from: type=gha,scope=stable-alpine-slim
122
+ # cache-to: type=gha,mode=min,scope=stable-alpine-slim
124
123
125
124
- name : Sign Docker Hub Manifest
126
125
if : ${{ github.event_name != 'pull_request' }}
@@ -210,11 +209,10 @@ jobs:
210
209
uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
211
210
with :
212
211
images : |
213
- docker.io/nginxinc/nginx-unprivileged
214
- ghcr.io/nginx/nginx-unprivileged
215
- public.ecr.aws/nginx/nginx-unprivileged
216
- quay.io/nginx/nginx-unprivileged
217
- ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || '' }}
212
+ ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || 'docker.io/nginxinc/nginx-unprivileged' }}
213
+ ${{ github.event_name != 'pull_request' && 'ghcr.io/nginx/nginx-unprivileged' || '' }}
214
+ ${{ github.event_name != 'pull_request' && 'public.ecr.aws/nginx/nginx-unprivileged' || '' }}
215
+ ${{ github.event_name != 'pull_request' && 'quay.io/nginx/nginx-unprivileged' || '' }}
218
216
tags : |
219
217
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine
220
218
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine${{ needs.version.outputs.distro }}
@@ -237,7 +235,6 @@ jobs:
237
235
push : true
238
236
cache-from : type=gha,scope=stable-alpine
239
237
cache-to : type=gha,mode=min,scope=stable-alpine
240
- build-args : ${{ github.event_name == 'pull_request' && 'IMAGE=localhost:5000/nginx-unprivileged:stable-alpine-slim' || '' }}
241
238
242
239
- name : Sign Docker Hub Manifest
243
240
if : ${{ github.event_name != 'pull_request' }}
@@ -327,11 +324,10 @@ jobs:
327
324
uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
328
325
with :
329
326
images : |
330
- docker.io/nginxinc/nginx-unprivileged
331
- ghcr.io/nginx/nginx-unprivileged
332
- public.ecr.aws/nginx/nginx-unprivileged
333
- quay.io/nginx/nginx-unprivileged
334
- ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || '' }}
327
+ ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || 'docker.io/nginxinc/nginx-unprivileged' }}
328
+ ${{ github.event_name != 'pull_request' && 'ghcr.io/nginx/nginx-unprivileged' || '' }}
329
+ ${{ github.event_name != 'pull_request' && 'public.ecr.aws/nginx/nginx-unprivileged' || '' }}
330
+ ${{ github.event_name != 'pull_request' && 'quay.io/nginx/nginx-unprivileged' || '' }}
335
331
tags : |
336
332
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine-perl
337
333
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine${{ needs.version.outputs.distro }}-perl
@@ -351,10 +347,9 @@ jobs:
351
347
labels : ${{ steps.meta.outputs.labels }}
352
348
annotations : ${{ steps.meta.outputs.annotations }}
353
349
tags : ${{ steps.meta.outputs.tags }}
354
- push : true
355
- cache-from : type=gha,scope=stable-alpine-perl
356
- cache-to : type=gha,mode=min,scope=stable-alpine-perl
357
- build-args : ${{ github.event_name == 'pull_request' && 'IMAGE=localhost:5000/nginx-unprivileged:stable-alpine' || '' }}
350
+ push : ${{ github.event_name != 'pull_request' }}
351
+ # cache-from: type=gha,scope=stable-alpine-perl
352
+ # cache-to: type=gha,mode=min,scope=stable-alpine-perl
358
353
359
354
- name : Sign Docker Hub Manifest
360
355
if : ${{ github.event_name != 'pull_request' }}
@@ -443,11 +438,10 @@ jobs:
443
438
uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
444
439
with :
445
440
images : |
446
- docker.io/nginxinc/nginx-unprivileged
447
- ghcr.io/nginx/nginx-unprivileged
448
- public.ecr.aws/nginx/nginx-unprivileged
449
- quay.io/nginx/nginx-unprivileged
450
- ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || '' }}
441
+ ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || 'docker.io/nginxinc/nginx-unprivileged' }}
442
+ ${{ github.event_name != 'pull_request' && 'ghcr.io/nginx/nginx-unprivileged' || '' }}
443
+ ${{ github.event_name != 'pull_request' && 'public.ecr.aws/nginx/nginx-unprivileged' || '' }}
444
+ ${{ github.event_name != 'pull_request' && 'quay.io/nginx/nginx-unprivileged' || '' }}
451
445
tags : |
452
446
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine-otel
453
447
type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine${{ needs.version.outputs.distro }}-otel
@@ -467,10 +461,9 @@ jobs:
467
461
labels : ${{ steps.meta.outputs.labels }}
468
462
annotations : ${{ steps.meta.outputs.annotations }}
469
463
tags : ${{ steps.meta.outputs.tags }}
470
- push : true
471
- cache-from : type=gha,scope=stable-alpine-otel
472
- cache-to : type=gha,mode=min,scope=stable-alpine-otel
473
- build-args : ${{ github.event_name == 'pull_request' && 'IMAGE=localhost:5000/nginx-unprivileged:stable-alpine' || '' }}
464
+ push : ${{ github.event_name != 'pull_request' }}
465
+ # cache-from: type=gha,scope=stable-alpine-otel
466
+ # cache-to: type=gha,mode=min,scope=stable-alpine-otel
474
467
475
468
- name : Sign Docker Hub Manifest
476
469
if : ${{ github.event_name != 'pull_request' }}
0 commit comments