@@ -94,11 +94,10 @@ jobs:
9494 uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
9595 with :
9696 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' || '' }}
102101 tags : |
103102 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine-slim
104103 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:
118117 labels : ${{ steps.meta.outputs.labels }}
119118 annotations : ${{ steps.meta.outputs.annotations }}
120119 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
124123
125124 - name : Sign Docker Hub Manifest
126125 if : ${{ github.event_name != 'pull_request' }}
@@ -210,11 +209,10 @@ jobs:
210209 uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
211210 with :
212211 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' || '' }}
218216 tags : |
219217 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine
220218 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:
237235 push : true
238236 cache-from : type=gha,scope=stable-alpine
239237 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' || '' }}
241238
242239 - name : Sign Docker Hub Manifest
243240 if : ${{ github.event_name != 'pull_request' }}
@@ -327,11 +324,10 @@ jobs:
327324 uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
328325 with :
329326 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' || '' }}
335331 tags : |
336332 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine-perl
337333 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:
351347 labels : ${{ steps.meta.outputs.labels }}
352348 annotations : ${{ steps.meta.outputs.annotations }}
353349 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
358353
359354 - name : Sign Docker Hub Manifest
360355 if : ${{ github.event_name != 'pull_request' }}
@@ -443,11 +438,10 @@ jobs:
443438 uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
444439 with :
445440 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' || '' }}
451445 tags : |
452446 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-alpine-otel
453447 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:
467461 labels : ${{ steps.meta.outputs.labels }}
468462 annotations : ${{ steps.meta.outputs.annotations }}
469463 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
474467
475468 - name : Sign Docker Hub Manifest
476469 if : ${{ github.event_name != 'pull_request' }}
0 commit comments