@@ -36,14 +36,19 @@ jobs:
36
36
- name : Load NGINX Gateway Fabric image into Docker
37
37
run : docker load -i ngf-image.tar
38
38
39
- - name : Tag image for preflight
39
+ - name : Load NGINX Gateway Fabric image into Docker
40
+ run : docker load -i ngf-image.tar
41
+
42
+ - name : Retag image for preflight
40
43
run : |
41
- docker tag localhost:5000/nginx/nginx-gateway-fabric:${{ github.run_id }}-${{ github.run_number }} nginx-gateway-fabric:edge-ubi
44
+ IMAGE_ID=$(docker images --format '{{.Repository}}:{{.Tag}}' | grep '^localhost:5000/nginx-gateway-fabric/ngf:' | head -n 1)
45
+ docker tag $IMAGE_ID nginx-gateway-fabric:ubi
46
+
42
47
43
48
- name : Run preflight for NGINX Gateway Fabric
44
49
env :
45
50
PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
46
- run : preflight check container nginx-gateway-fabric:edge- ubi > ngf-preflight-result.json
51
+ run : preflight check container nginx-gateway-fabric:ubi > ngf-preflight-result.json
47
52
48
53
- name : Download NGINX NGINX OSS image artifact
49
54
uses : actions/download-artifact@v4
@@ -53,14 +58,16 @@ jobs:
53
58
- name : Load NGINX OSS image into Docker
54
59
run : docker load -i nginx-oss-image.tar
55
60
56
- - name : Tag image for preflight
61
+ - name : Retag image for preflight
57
62
run : |
58
- docker tag localhost:5000/nginx-gateway-fabric/nginx:${{ github.run_id }}-${{ github.run_number }}nginx-oss:edge-ubi
63
+ IMAGE_ID=$(docker images --format '{{.Repository}}:{{.Tag}}' | grep '^localhost:5000/nginx-gateway-fabric/nginx:' | head -n 1)
64
+ docker tag $IMAGE_ID nginx-oss:ubi
65
+
59
66
60
67
- name : Run preflight for NGINX OSS
61
68
env :
62
69
PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
63
- run : preflight check container nginx:edge- ubi > ngf-oss-preflight-result.json
70
+ run : preflight check container nginx:ubi > ngf-oss-preflight-result.json
64
71
65
72
- name : Download NGINX Gateway Fabric Operator image artifact
66
73
uses : actions/download-artifact@v4
@@ -70,14 +77,16 @@ jobs:
70
77
- name : Load NGINX Gateway Fabric Operator image into Docker
71
78
run : docker load -i operator-image.tar
72
79
73
- - name : Tag image for preflight
80
+ - name : Retag image for preflight
74
81
run : |
75
- docker tag localhost:5000/nginx-gateway-fabric/operator:${{ github.run_id }}-${{ github.run_number }} ngf-operator:edge
82
+ IMAGE_ID=$(docker images --format '{{.Repository}}:{{.Tag}}' | grep '^localhost:5000/nginx-gateway-fabric/operator:' | head -n 1)
83
+ docker tag $IMAGE_ID ngf-operator:ubi
84
+
76
85
77
86
- name : Run preflight for NGINX Gateway Fabric Operator
78
87
env :
79
88
PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
80
- run : preflight check container ngf-operator:edge > ngf-operator-preflight-result.json
89
+ run : preflight check container ngf-operator:ubi > ngf-operator-preflight-result.json
81
90
82
91
- name : Aggregate preflight results and fail if any checks failed
83
92
run : |
0 commit comments