Skip to content

Commit e33ca05

Browse files
authored
Images: Remove NGINX v1.21. (#12031)
1 parent f3bfa56 commit e33ca05

File tree

65 files changed

+244
-2535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+244
-2535
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'deploy/**'
1010
- '**.md'
1111
- 'images/**' # Images changes should be tested on their own workflow
12-
- '!images/nginx-1.25/**'
12+
- '!images/nginx/**'
1313

1414
push:
1515
branches:
@@ -68,7 +68,7 @@ jobs:
6868
- 'NGINX_BASE'
6969
baseimage:
7070
- 'NGINX_BASE'
71-
- 'images/nginx-1.25/**'
71+
- 'images/nginx/**'
7272
docs:
7373
- '**/*.md'
7474
lua:
@@ -180,8 +180,8 @@ jobs:
180180
if: |
181181
needs.changes.outputs.baseimage == 'true'
182182
run: |
183-
export TAG=$(cat images/nginx-1.25/TAG)
184-
cd images/nginx-1.25/rootfs && docker buildx build --platform=${{ env.PLATFORMS }} --load -t registry.k8s.io/ingress-nginx/nginx-1.25:${TAG} .
183+
export TAG=$(cat images/nginx/TAG)
184+
cd images/nginx/rootfs && docker buildx build --platform=${{ env.PLATFORMS }} --load -t registry.k8s.io/ingress-nginx/nginx:${TAG} .
185185
186186
- name: Build images
187187
env:
@@ -190,8 +190,8 @@ jobs:
190190
REGISTRY: ingress-controller
191191
run: |
192192
echo "building images..."
193-
export TAGNGINX=$(cat images/nginx-1.25/TAG)
194-
make BASE_IMAGE=registry.k8s.io/ingress-nginx/nginx-1.25:${TAGNGINX} clean-image build image image-chroot
193+
export TAGNGINX=$(cat images/nginx/TAG)
194+
make BASE_IMAGE=registry.k8s.io/ingress-nginx/nginx:${TAGNGINX} clean-image build image image-chroot
195195
make -C test/e2e-image image
196196
197197
echo "creating images cache..."

.github/workflows/images.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
kube-webhook-certgen: ${{ steps.filter.outputs.kube-webhook-certgen }}
3737
ext-auth-example-authsvc: ${{ steps.filter.outputs.ext-auth-example-authsvc }}
3838
nginx: ${{ steps.filter.outputs.nginx }}
39-
nginx125: ${{ steps.filter.outputs.nginx125 }}
4039

4140
steps:
4241
- name: Checkout
@@ -64,8 +63,6 @@ jobs:
6463
- 'images/ext-auth-example-authsvc/**'
6564
nginx:
6665
- 'images/nginx/**'
67-
nginx125:
68-
- 'images/nginx-1.25/TAG'
6966
7067
#### TODO: Make the below jobs 'less dumb' and use the job name as parameter (the github.job context does not work here)
7168
cfssl:
@@ -163,14 +160,14 @@ jobs:
163160
run: |
164161
cd images/ && make NAME=kube-webhook-certgen test test-e2e
165162
166-
nginx125:
163+
nginx:
167164
permissions:
168165
contents: write
169166
packages: write
170167
runs-on: ubuntu-latest
171168
needs: changes
172169
if: |
173-
(github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.changes.outputs.nginx125 == 'true')
170+
(github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.changes.outputs.nginx == 'true')
174171
env:
175172
PLATFORMS: linux/amd64,linux/arm,linux/arm64,linux/s390x
176173
steps:
@@ -191,5 +188,5 @@ jobs:
191188
password: ${{ secrets.DOCKERHUB_TOKEN }}
192189
- name: build-image
193190
run: |
194-
export TAG=$(cat images/nginx-1.25/TAG)
195-
cd images/nginx-1.25/rootfs && docker buildx build --platform=${{ env.PLATFORMS }} --push -t ingressnginx/nginx-1.25:${TAG} .
191+
export TAG=$(cat images/nginx/TAG)
192+
cd images/nginx/rootfs && docker buildx build --platform=${{ env.PLATFORMS }} --push -t ingressnginx/nginx:${TAG} .

images/nginx-1.25/Makefile

Lines changed: 0 additions & 59 deletions
This file was deleted.

images/nginx-1.25/README.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

images/nginx-1.25/TAG

Lines changed: 0 additions & 1 deletion
This file was deleted.

images/nginx-1.25/cloudbuild.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

images/nginx-1.25/rootfs/Dockerfile

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)