File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,10 @@ jobs:
210210 password : ${{ secrets.GITHUB_TOKEN }}
211211
212212 - name : Export and upload images
213+ if : ${{ build-os == 'ubi' && !inputs.dry_run }}
213214 run : |
214215 # Create a local reference for the platform
215- docker buildx imagetools create --tag temp ghcr.io/${{ github.repository_owner }} /nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }}
216+ docker buildx imagetools create --tag temp localhost:5000 /nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }}
216217 # Export the image as a tarball
217218 docker buildx imagetools export temp > ${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar
218219 done
Original file line number Diff line number Diff line change 4545
4646 - name : Retag image for preflight
4747 run : |
48- loaded_tag="ghcr.io/${{ github.repository_owner }} /nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
48+ loaded_tag="localhost:5000 /nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}"
4949 preflight_tag="${{ inputs.image }}:ubi"
5050 docker tag "$loaded_tag" "$preflight_tag"
5151
@@ -64,11 +64,11 @@ jobs:
6464 exit 1
6565 fi
6666
67- cleanup :
68- runs-on : ubuntu-24.04
69- if : always()
70- steps :
71- - name : Delete image from registry
72- run : |
73- curl -X DELETE "https://ghcr.io/v2/${{ github.repository_owner }}/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}" \
74- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"
67+ # cleanup:
68+ # runs-on: ubuntu-24.04
69+ # if: always()
70+ # steps:
71+ # - name: Delete image from registry
72+ # run: |
73+ # curl -X DELETE "https://ghcr.io/v2/${{ github.repository_owner }}/nginx-gateway-fabric/${{ inputs.image }}:${{ inputs.image_version }}" \
74+ # -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"
You can’t perform that action at this time.
0 commit comments