@@ -193,11 +193,27 @@ jobs:
193
193
with :
194
194
sarif_file : ${{ steps.scan.outputs.sarif }}
195
195
category : build-${{ inputs.image }}
196
+
197
+ - name : Save NGINX Gateway Fabric image
198
+ if : ${{ inputs.image == 'ngf' }}
199
+ run : |
200
+ IMAGE_TAG=$(echo "${{ steps.meta.outputs.tags }}" | grep '^localhost:5000/nginx-gateway-fabric/ngf:' | head -n 1)
201
+ docker save -o ngf-image.tar $IMAGE_TAG
202
+
203
+ - name : Upload NGINX Gateway Fabric image artifact
204
+ uses : actions/upload-artifact@v4
205
+ with :
206
+ name : ngf-image
207
+ path : ngf-image.tar
208
+
209
+ - name : Show all image tags for debugging
210
+ run : echo "${{ steps.meta.outputs.tags }}"
196
211
197
212
- name : Save NGINX OSS image as tarball
198
213
if : ${{ inputs.image == 'nginx' }}
199
214
run : |
200
- docker save -o nginx-oss-image.tar localhost:5000/nginx-gateway-fabric/nginx:${{ github.run_id }}-${{ github.run_number }}
215
+ IMAGE_TAG=$(echo "${{ steps.meta.outputs.tags }}" | grep '^localhost:5000/nginx-gateway-fabric/nginx:' | head -n 1)
216
+ docker save -o nginx-oss-image.tar $IMAGE_TAG
201
217
202
218
- name : Upload NGINX OSS image artifact
203
219
if : ${{ inputs.image == 'nginx' }}
@@ -209,7 +225,8 @@ jobs:
209
225
- name : Save Operator image as tarball
210
226
if : ${{ inputs.image == 'operator' }}
211
227
run : |
212
- docker save -o operator-image.tar localhost:5000/nginx-gateway-fabric/operator:${{ github.run_id }}-${{ github.run_number }}
228
+ IMAGE_TAG=$(echo "${{ steps.meta.outputs.tags }}" | grep '^localhost:5000/nginx-gateway-fabric/operator:' | head -n 1)
229
+ docker save -o operator-image.tar $IMAGE_TAG
213
230
214
231
- name : Upload Operator image artifact
215
232
if : ${{ inputs.image == 'operator' }}
0 commit comments