@@ -44,35 +44,36 @@ jobs:
44
44
chmod +x preflight-linux-amd64
45
45
sudo mv preflight-linux-amd64 /usr/local/bin/preflight
46
46
47
- - name : Download image artifact
48
- uses : actions/download-artifact@v4
47
+ - name : Download Artifacts
48
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
49
49
with :
50
- name : ${{ inputs.image }}-${{ inputs.image_version }}
50
+ name : dist-${{ github.run_id }}
51
+ path : ${{ github.workspace }}/dist
51
52
52
53
- name : List files after artifact download
53
- run : ls -l ${{ inputs.image }}-${{ inputs.image_version }}.tar
54
+ run : ls -l ${{ github.workspace }}/dist
54
55
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
58
59
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"
64
65
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
69
70
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