Skip to content

Commit 2d5092d

Browse files
committed
Fix image tagging
1 parent 89f821d commit 2d5092d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,38 @@ jobs:
559559
run: |
560560
helm push ${{ steps.package.outputs.path }} oci://ghcr.io/nginx/charts
561561
562+
retag-operator:
563+
name: Retag Images
564+
runs-on: ubuntu-24.04
565+
permissions:
566+
packages: write
567+
steps:
568+
- name: Login to GitHub Container Registry
569+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
570+
with:
571+
registry: ghcr.io
572+
username: ${{ github.repository_owner }}
573+
password: ${{ secrets.GITHUB_TOKEN }}
574+
575+
- name: Retag images
576+
run: |
577+
# NGF image - add latest tag
578+
docker pull ghcr.io/nginx/nginx-gateway-fabric:2.2.0
579+
docker tag ghcr.io/nginx/nginx-gateway-fabric:2.2.0 ghcr.io/nginx/nginx-gateway-fabric:latest
580+
docker push ghcr.io/nginx/nginx-gateway-fabric:latest
581+
582+
# NGINX image - add latest tag
583+
docker pull ghcr.io/nginx/nginx-gateway-fabric/nginx:2.2.0
584+
docker tag ghcr.io/nginx/nginx-gateway-fabric/nginx:2.2.0 ghcr.io/nginx/nginx-gateway-fabric/nginx:latest
585+
docker push ghcr.io/nginx/nginx-gateway-fabric/nginx:latest
586+
587+
# Operator image - retag from RC
588+
docker pull ghcr.io/nginx/nginx-gateway-fabric/operator:release-2.2-rc
589+
docker tag ghcr.io/nginx/nginx-gateway-fabric/operator:release-2.2-rc ghcr.io/nginx/nginx-gateway-fabric/operator:1.0.0
590+
docker tag ghcr.io/nginx/nginx-gateway-fabric/operator:release-2.2-rc ghcr.io/nginx/nginx-gateway-fabric/operator:latest
591+
docker push ghcr.io/nginx/nginx-gateway-fabric/operator:1.0.0
592+
docker push ghcr.io/nginx/nginx-gateway-fabric/operator:latest
593+
562594
cel-tests:
563595
name: CEL Tests
564596
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)