Skip to content

Commit b75a370

Browse files
committed
Fix pre-commit errors
1 parent e45fb54 commit b75a370

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -199,33 +199,33 @@ 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 }}"
204-
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
216-
217-
218-
# - name: Run preflight
219-
# env:
220-
# PYXIS_API_TOKEN: ${{ secrets.PYXIS_API_TOKEN }}
221-
# run: preflight check container ${{ inputs.image }}:ubi > preflight-result.json
222-
223-
# - name: Check preflight results
224-
# run: |
225-
# failed_count=$(jq '.results.failed | length' preflight-result.json)
226-
# if [ "$failed_count" -ne 0 ]; then
227-
# echo "Preflight checks failed: $failed_count failed checks"
228-
# echo "Results for preflight-result.json:"
229-
# jq '.results.failed' preflight-result.json
230-
# exit 1
231-
# fi
202+
# - name: Show all image tags for debugging
203+
# run: echo "${{ steps.meta.outputs.tags }}"
204+
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
216+
217+
218+
# - name: Run preflight
219+
# env:
220+
# PYXIS_API_TOKEN: ${{ secrets.PYXIS_API_TOKEN }}
221+
# run: preflight check container ${{ inputs.image }}:ubi > preflight-result.json
222+
223+
# - name: Check preflight results
224+
# run: |
225+
# failed_count=$(jq '.results.failed | length' preflight-result.json)
226+
# if [ "$failed_count" -ne 0 ]; then
227+
# echo "Preflight checks failed: $failed_count failed checks"
228+
# echo "Results for preflight-result.json:"
229+
# jq '.results.failed' preflight-result.json
230+
# exit 1
231+
# fi

.github/workflows/openshift-certification.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,27 +53,27 @@ jobs:
5353
- name: List files after artifact download
5454
run: ls -l ${{ github.workspace }}/dist
5555

56-
# - name: Load image into Docker
57-
# run: |
58-
# 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
5959

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"
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"
6565

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
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
7070

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
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)