@@ -3,14 +3,6 @@ name: OpenShift Certification
3
3
on :
4
4
workflow_call :
5
5
inputs :
6
- build-os :
7
- required : true
8
- type : string
9
- default : ' ubi'
10
- dry_run :
11
- required : false
12
- type : boolean
13
- default : false
14
6
runner :
15
7
required : false
16
8
type : string
@@ -20,42 +12,42 @@ jobs:
20
12
preflight :
21
13
runs-on : ${{ inputs.runner }}
22
14
steps :
23
- - name : Checkout repository
24
- uses : actions/checkout@v4
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v4
25
17
26
- - name : Download preflight binary
27
- run : |
28
- curl -LO https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
29
- chmod +x preflight-linux-amd64
30
- sudo mv preflight-linux-amd64 /usr/local/bin/preflight
18
+ - name : Download preflight binary
19
+ run : |
20
+ curl -LO https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
21
+ chmod +x preflight-linux-amd64
22
+ sudo mv preflight-linux-amd64 /usr/local/bin/preflight
31
23
32
- - name : Run preflight for NGINX Gateway Fabric
33
- env :
34
- PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
35
- run : preflight check container ghcr.io/nginx/nginx-gateway-fabric:edge-ubi --json > ngf-preflight-result.json
24
+ - name : Run preflight for NGINX Gateway Fabric
25
+ env :
26
+ PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
27
+ run : preflight check container ghcr.io/nginx/nginx-gateway-fabric:edge-ubi --json > ngf-preflight-result.json
36
28
37
- - name : Run preflight for NGINX OSS
38
- env :
39
- PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
40
- run : preflight check container ghcr.io/nginx/nginx-gateway-fabric/nginx:edge-ubi --json > ngf-oss-preflight-result.json
29
+ - name : Run preflight for NGINX OSS
30
+ env :
31
+ PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
32
+ run : preflight check container ghcr.io/nginx/nginx-gateway-fabric/nginx:edge-ubi --json > ngf-oss-preflight-result.json
41
33
42
- - name : Run preflight for NGINX Gateway Fabric Operator
43
- env :
44
- PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
45
- run : preflight check operator ghcr.io/nginx/nginx-gateway-fabric/operator:edge --json > ngf-operator-preflight-result.json
34
+ - name : Run preflight for NGINX Gateway Fabric Operator
35
+ env :
36
+ PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
37
+ run : preflight check operator ghcr.io/nginx/nginx-gateway-fabric/operator:edge --json > ngf-operator-preflight-result.json
46
38
47
- - name : Aggregate preflight results and fail if any checks failed
48
- run : |
49
- total_failed=0
50
- for result in ngf-preflight-result.json ngf-oss-preflight-result.json ngf-operator-preflight-result.json; do
51
- failed_count=$(jq '.results.failed | length' "$result")
52
- total_failed=$((total_failed + failed_count))
53
- done
54
- if [ "$total_failed" -ne 0 ]; then
55
- echo "Preflight checks failed: $total_failed failed checks across all images"
56
- for result in ngf-preflight-result.json ngf-oss-preflight-result.json ngf-operator-preflight-result.json; do
57
- echo "Results for $result:"
58
- jq '.results.failed' "$result"
59
- done
60
- exit 1
61
- fi
39
+ - name : Aggregate preflight results and fail if any checks failed
40
+ run : |
41
+ total_failed=0
42
+ for result in ngf-preflight-result.json ngf-oss-preflight-result.json ngf-operator-preflight-result.json; do
43
+ failed_count=$(jq '.results.failed | length' "$result")
44
+ total_failed=$((total_failed + failed_count))
45
+ done
46
+ if [ "$total_failed" -ne 0 ]; then
47
+ echo "Preflight checks failed: $total_failed failed checks across all images"
48
+ for result in ngf-preflight-result.json ngf-oss-preflight-result.json ngf-operator-preflight-result.json; do
49
+ echo "Results for $result:"
50
+ jq '.results.failed' "$result"
51
+ done
52
+ exit 1
53
+ fi
0 commit comments