Skip to content

Commit e45fb54

Browse files
committed
Debug artifact upload and download
1 parent 83e216d commit e45fb54

File tree

3 files changed

+45
-38
lines changed

3 files changed

+45
-38
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -199,20 +199,20 @@ jobs:
199199
sarif_file: ${{ steps.scan.outputs.sarif }}
200200
category: build-${{ inputs.image }}
201201

202-
- name: Show all image tags for debugging
203-
run: echo "${{ steps.meta.outputs.tags }}"
202+
# - name: Show all image tags for debugging
203+
# 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 ${{ 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
216216

217217

218218
# - name: Run preflight

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ jobs:
271271
path: ${{ github.workspace }}/dist
272272
key: nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }}
273273

274+
- name: Upload Artifacts
275+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
276+
with:
277+
name: dist-${{ github.run_id }}
278+
path: ${{ github.workspace }}/dist
279+
274280
assertion:
275281
name: Generate and Sign Assertion Documents
276282
needs: [vars, binary]

.github/workflows/openshift-certification.yml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -44,35 +44,36 @@ jobs:
4444
chmod +x preflight-linux-amd64
4545
sudo mv preflight-linux-amd64 /usr/local/bin/preflight
4646
47-
- name: Download image artifact
48-
uses: actions/download-artifact@v4
47+
- name: Download Artifacts
48+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
4949
with:
50-
name: ${{ inputs.image }}-${{ inputs.image_version }}
50+
name: dist-${{ github.run_id }}
51+
path: ${{ github.workspace }}/dist
5152

5253
- name: List files after artifact download
53-
run: ls -l ${{ inputs.image }}-${{ inputs.image_version }}.tar
54+
run: ls -l ${{ github.workspace }}/dist
5455

55-
- name: Load image into Docker
56-
run: |
57-
docker load -i ${{ inputs.image }}-${{ inputs.image_version }}.tar
56+
# - name: Load image into Docker
57+
# run: |
58+
# docker load -i ${{ inputs.image }}-${{ inputs.image_version }}.tar
5859

59-
- name: Retag image for preflight
60-
run: |
61-
loaded_tag="localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
62-
preflight_tag="${{ inputs.image }}:ubi"
63-
docker tag "$loaded_tag" "$preflight_tag"
60+
# - name: Retag image for preflight
61+
# run: |
62+
# loaded_tag="localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
63+
# preflight_tag="${{ inputs.image }}:ubi"
64+
# docker tag "$loaded_tag" "$preflight_tag"
6465

65-
- name: Run preflight
66-
env:
67-
PYXIS_API_TOKEN: ${{ secrets.PYXIS_API_TOKEN }}
68-
run: preflight check container ${{ inputs.image }}:ubi > preflight-result.json
66+
# - name: Run preflight
67+
# env:
68+
# PYXIS_API_TOKEN: ${{ secrets.PYXIS_API_TOKEN }}
69+
# run: preflight check container ${{ inputs.image }}:ubi > preflight-result.json
6970

70-
- name: Check preflight results
71-
run: |
72-
failed_count=$(jq '.results.failed | length' preflight-result.json)
73-
if [ "$failed_count" -ne 0 ]; then
74-
echo "Preflight checks failed: $failed_count failed checks"
75-
echo "Results for preflight-result.json:"
76-
jq '.results.failed' preflight-result.json
77-
exit 1
78-
fi
71+
# - name: Check preflight results
72+
# run: |
73+
# failed_count=$(jq '.results.failed | length' preflight-result.json)
74+
# if [ "$failed_count" -ne 0 ]; then
75+
# echo "Preflight checks failed: $failed_count failed checks"
76+
# echo "Results for preflight-result.json:"
77+
# jq '.results.failed' preflight-result.json
78+
# exit 1
79+
# fi

0 commit comments

Comments
 (0)