Skip to content

Commit 8abbf61

Browse files
committed
Ensure correct tags are passed to preflight job
1 parent bb98927 commit 8abbf61

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,13 @@ jobs:
426426
uses: ./.github/workflows/openshift-certification.yml
427427
with:
428428
image: ${{ matrix.image }}
429-
image_version: >
430-
${{ matrix.image == 'ngf' && needs.build-oss.outputs.image_version
431-
|| matrix.image == 'nginx' && needs.build-oss.outputs.image_version
432-
|| matrix.image == 'operator' && needs.build-operator.outputs.image_version }}
429+
if: |
430+
(matrix.image == 'operator') ||
431+
((matrix.image == 'ngf' || matrix.image == 'nginx') && contains(
432+
matrix.image == 'ngf' && needs.build-oss.outputs.image_version ||
433+
matrix.image == 'nginx' && needs.build-oss.outputs.image_version,
434+
'-ubi'
435+
))
433436
tag: ${{ inputs.release_version || '' }}
434437
dry_run: ${{ inputs.dry_run || false }}
435438
permissions:

.github/workflows/openshift-certification.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
PYXIS_API_TOKEN: ${{ secrets.PYXIS_API_TOKEN }}
5454
run: |
5555
if [[ "${{ inputs.image }}" == "ngf" ]]; then
56-
IMAGE_PATH="quay.io/${{ github.repository_owner }}/nginx-gateway-fabric:${{ inputs.image_version }}-ubi"
56+
IMAGE_PATH="quay.io/${{ github.repository_owner }}/nginx-gateway-fabric:${{ inputs.image_version }}"
5757
else
58-
IMAGE_PATH="quay.io/${{ github.repository_owner }}/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}-ubi"
58+
IMAGE_PATH="quay.io/${{ github.repository_owner }}/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
5959
fi
6060
preflight check container "$IMAGE_PATH" > preflight-result.json
6161

0 commit comments

Comments
 (0)