Skip to content

Commit 887362e

Browse files
committed
Update upload step
1 parent b75a370 commit 887362e

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,17 @@ jobs:
202202
# - name: Show all image tags for debugging
203203
# run: echo "${{ steps.meta.outputs.tags }}"
204204

205-
# - name: Pull and save image artifact for linux/amd64
206-
# if: ${{ (inputs.build-os == 'ubi'|| inputs.image == 'operator') && !inputs.dry_run }}
207-
# run: |
208-
# docker pull --platform=linux/amd64 localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }}
209-
# docker save localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }} -o ${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar
210-
211-
# - name: Upload all image artifacts
212-
# uses: actions/upload-artifact@v4
213-
# with:
214-
# name: ${{ inputs.image }}-${{ steps.meta.outputs.version }}
215-
# path: ${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar
205+
- name: Pull and save image artifact for linux/amd64
206+
if: ${{ (inputs.build-os == 'ubi'|| inputs.image == 'operator') && !inputs.dry_run }}
207+
run: |
208+
docker pull --platform=linux/amd64 localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }}
209+
docker save localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }} -o ${{ github.workspace }}/dist/${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar
216210
211+
- name: Upload all image artifacts
212+
uses: actions/upload-artifact@v4
213+
with:
214+
name: ${{ inputs.image }}-${{ steps.meta.outputs.version }}
215+
path: ${{ github.workspace }}/dist/${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar
217216

218217
# - name: Run preflight
219218
# env:

.github/workflows/openshift-certification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Download Artifacts
4848
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
4949
with:
50-
name: dist-${{ github.run_id }}
50+
name: ${{ inputs.image }}:${{ inputs.image_version }}
5151
path: ${{ github.workspace }}/dist
5252

5353
- name: List files after artifact download

0 commit comments

Comments
 (0)