Skip to content

Commit 912a3ff

Browse files
committed
Only export and upload UBI images
1 parent 6f9f14b commit 912a3ff

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/openshift-certification.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
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 }}"

0 commit comments

Comments
 (0)