Skip to content

Commit 118145b

Browse files
committed
Update openshift certification job with new image tags
1 parent 8ef4adb commit 118145b

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/openshift-certification.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,19 @@ jobs:
3636
- name: Load NGINX Gateway Fabric image into Docker
3737
run: docker load -i ngf-image.tar
3838

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
4043
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+
4247
4348
- name: Run preflight for NGINX Gateway Fabric
4449
env:
4550
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
4752

4853
- name: Download NGINX NGINX OSS image artifact
4954
uses: actions/download-artifact@v4
@@ -53,14 +58,16 @@ jobs:
5358
- name: Load NGINX OSS image into Docker
5459
run: docker load -i nginx-oss-image.tar
5560

56-
- name: Tag image for preflight
61+
- name: Retag image for preflight
5762
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+
5966
6067
- name: Run preflight for NGINX OSS
6168
env:
6269
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
6471

6572
- name: Download NGINX Gateway Fabric Operator image artifact
6673
uses: actions/download-artifact@v4
@@ -70,14 +77,16 @@ jobs:
7077
- name: Load NGINX Gateway Fabric Operator image into Docker
7178
run: docker load -i operator-image.tar
7279

73-
- name: Tag image for preflight
80+
- name: Retag image for preflight
7481
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+
7685
7786
- name: Run preflight for NGINX Gateway Fabric Operator
7887
env:
7988
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
8190

8291
- name: Aggregate preflight results and fail if any checks failed
8392
run: |

0 commit comments

Comments
 (0)