3737 runs-on : ubuntu-24.04
3838 strategy :
3939 fail-fast : false
40+ services :
41+ registry :
42+ image : registry:2
43+ ports :
44+ - 5000:5000
4045 steps :
4146 - name : Check out the codebase
4247 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
9398 ghcr.io/nginx/nginx-unprivileged
9499 public.ecr.aws/nginx/nginx-unprivileged
95100 quay.io/nginx/nginx-unprivileged
101+ ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || '' }}
96102 tags : |
97103 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}
98104 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-${{ needs.version.outputs.distro }}
@@ -113,7 +119,7 @@ jobs:
113119 labels : ${{ steps.meta.outputs.labels }}
114120 annotations : ${{ steps.meta.outputs.annotations }}
115121 tags : ${{ steps.meta.outputs.tags }}
116- push : ${{ github.event_name != 'pull_request' }}
122+ push : true
117123 cache-from : type=gha,scope=stable-debian
118124 cache-to : type=gha,mode=min,scope=stable-debian
119125
@@ -148,6 +154,11 @@ jobs:
148154 runs-on : ubuntu-24.04
149155 strategy :
150156 fail-fast : false
157+ services :
158+ registry :
159+ image : registry:2
160+ ports :
161+ - 5000:5000
151162 steps :
152163 - name : Check out the codebase
153164 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -204,6 +215,7 @@ jobs:
204215 ghcr.io/nginx/nginx-unprivileged
205216 public.ecr.aws/nginx/nginx-unprivileged
206217 quay.io/nginx/nginx-unprivileged
218+ ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || '' }}
207219 tags : |
208220 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-perl
209221 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-${{ needs.version.outputs.distro }}-perl
@@ -224,9 +236,10 @@ jobs:
224236 labels : ${{ steps.meta.outputs.labels }}
225237 annotations : ${{ steps.meta.outputs.annotations }}
226238 tags : ${{ steps.meta.outputs.tags }}
227- push : ${{ github.event_name != 'pull_request' }}
239+ push : true
228240 cache-from : type=gha,scope=stable-debian-perl
229241 cache-to : type=gha,mode=min,scope=stable-debian-perl
242+ build-args : ${{ github.event_name == 'pull_request' && 'IMAGE=localhost:5000/nginx-unprivileged:stable' || '' }}
230243
231244 - name : Sign Docker Hub Manifest
232245 if : ${{ github.event_name != 'pull_request' }}
@@ -259,6 +272,11 @@ jobs:
259272 runs-on : ubuntu-24.04
260273 strategy :
261274 fail-fast : false
275+ services :
276+ registry :
277+ image : registry:2
278+ ports :
279+ - 5000:5000
262280 steps :
263281 - name : Check out the codebase
264282 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -315,6 +333,7 @@ jobs:
315333 ghcr.io/nginx/nginx-unprivileged
316334 public.ecr.aws/nginx/nginx-unprivileged
317335 quay.io/nginx/nginx-unprivileged
336+ ${{ github.event_name == 'pull_request' && 'localhost:5000/nginx-unprivileged' || '' }}
318337 tags : |
319338 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-otel
320339 type=raw,value=${{ needs.version.outputs.major }}.${{ needs.version.outputs.minor }}.${{ needs.version.outputs.patch }}-${{ needs.version.outputs.distro }}-otel
@@ -334,9 +353,10 @@ jobs:
334353 labels : ${{ steps.meta.outputs.labels }}
335354 annotations : ${{ steps.meta.outputs.annotations }}
336355 tags : ${{ steps.meta.outputs.tags }}
337- push : ${{ github.event_name != 'pull_request' }}
356+ push : true
338357 cache-from : type=gha,scope=stable-debian-otel
339358 cache-to : type=gha,mode=min,scope=stable-debian-otel
359+ build-args : ${{ github.event_name == 'pull_request' && 'IMAGE=localhost:5000/nginx-unprivileged:stable' || '' }}
340360
341361 - name : Sign Docker Hub Manifest
342362 if : ${{ github.event_name != 'pull_request' }}
0 commit comments