@@ -34,20 +34,43 @@ jobs:
3434 with :
3535 ref : ${{ (inputs.tag != '' && !inputs.dry_run ) && format('refs/tags/v{0}', inputs.tag) || github.ref }}
3636
37+ - name : Login to GitHub Container Registry
38+ uses : docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
39+ if : ${{ github.event_name != 'pull_request' && ! contains(inputs.image, 'plus') }}
40+ with :
41+ registry : ghcr.io
42+ username : ${{ github.repository_owner }}
43+ password : ${{ secrets.GITHUB_TOKEN }}
44+
3745 - name : Download preflight binary
3846 run : |
3947 curl -LO https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
4048 chmod +x preflight-linux-amd64
4149 sudo mv preflight-linux-amd64 /usr/local/bin/preflight
4250
43- - name : Run preflight
51+ # - name: Run preflight
52+ # env:
53+ # PYXIS_API_TOKEN: ${{ secrets.PYXIS_API_TOKEN }}
54+ # run: |
55+ # if [[ "${{ inputs.image }}" == "ngf" ]]; then
56+ # IMAGE_PATH="ghcr.io/${{ github.repository_owner }}/nginx-gateway-fabric:${{ inputs.image_version }}"
57+ # else
58+ # IMAGE_PATH="ghcr.io/${{ github.repository_owner }}/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
59+ # fi
60+ # preflight check container "$IMAGE_PATH" > preflight-result.json
61+
62+ - name : Test run preflight on exiting edge images
4463 env :
4564 PYXIS_API_TOKEN : ${{ secrets.PYXIS_API_TOKEN }}
4665 run : |
4766 if [[ "${{ inputs.image }}" == "ngf" ]]; then
48- IMAGE_PATH="ghcr.io/${{ github.repository_owner }}/nginx-gateway-fabric:${{ inputs.image_version }}"
67+ # IMAGE_PATH="ghcr.io/${{ github.repository_owner }}/nginx-gateway-fabric:${{ inputs.image_version }}"
68+ IMAGE_PATH="quay.io/${{ github.repository_owner }}/nginx-gateway-fabric:edge-ubi"
69+ elif [[ "${{ inputs.image }}" == "nginx" ]]; then
70+ # IMAGE_PATH="ghcr.io/${{ github.repository_owner }}/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
71+ IMAGE_PATH="quay.io/${{ github.repository_owner }}/nginx-gateway-fabric/nginx:edge-ubi"
4972 else
50- IMAGE_PATH="ghcr.io/${{ github.repository_owner }}/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
73+ IMAGE_PATH="ghcr.io/${{ github.repository_owner }}/nginx-gateway-fabric/operator:edge
5174 fi
5275 preflight check container "$IMAGE_PATH" > preflight-result.json
5376
0 commit comments