Skip to content

Commit d7d59aa

Browse files
authored
Merge branch 'main' into issue-6679
2 parents 151ef1b + 025ddd7 commit d7d59aa

File tree

114 files changed

+7324
-894
lines changed

Some content is hidden

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

114 files changed

+7324
-894
lines changed

.github/actions/smoke-tests/action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ inputs:
3434
registry-token:
3535
description: JWT token for accessing container registry
3636
required: false
37+
plus-jwt:
38+
description: JWT for NGINX Plus
39+
required: false
3740

3841
outputs:
3942
test-results-name:
@@ -101,6 +104,7 @@ runs:
101104
--durations=10 \
102105
--show-ic-logs=yes \
103106
--ad-secret=${{ inputs.azure-ad-secret }} \
107+
--plus-jwt=${{ inputs.plus-jwt }} \
104108
-m ${{ inputs.marker != '' && inputs.marker || '""' }}
105109
working-directory: ./tests
106110
shell: bash

.github/data/matrix-images-plus.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"image": "ubi-9-plus",
21-
"platforms": "linux/arm64, linux/amd64, linux/s390x",
21+
"platforms": "linux/arm64, linux/amd64",
2222
"target": "goreleaser"
2323
}
2424
]

.github/workflows/build-base-images.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
- name: Docker meta
8484
id: meta
85-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
85+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
8686
with:
8787
images: |
8888
name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-base/oss
@@ -92,7 +92,7 @@ jobs:
9292
type=raw,value=${{ needs.checks.outputs.docker_md5 }},enable=${{ needs.checks.outputs.docker_md5 != '' }}
9393
9494
- name: Build Base Container
95-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
95+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
9696
with:
9797
file: build/Dockerfile
9898
context: "."
@@ -147,7 +147,7 @@ jobs:
147147

148148
- name: Docker meta
149149
id: meta
150-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
150+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
151151
with:
152152
images: |
153153
name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-base/plus
@@ -157,7 +157,7 @@ jobs:
157157
type=raw,value=${{ needs.checks.outputs.docker_md5 }},enable=${{ needs.checks.outputs.docker_md5 != '' }}
158158
159159
- name: Build Base Container
160-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
160+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
161161
with:
162162
file: build/Dockerfile
163163
context: "."
@@ -219,7 +219,7 @@ jobs:
219219

220220
- name: Docker meta
221221
id: meta
222-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
222+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
223223
with:
224224
images: |
225225
name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-base/plus
@@ -229,7 +229,7 @@ jobs:
229229
type=raw,value=${{ needs.checks.outputs.docker_md5 }},enable=${{ needs.checks.outputs.docker_md5 != '' }}
230230
231231
- name: Build Base Container
232-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
232+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
233233
with:
234234
file: build/Dockerfile
235235
context: "."

.github/workflows/build-oss.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: Docker meta
7878
id: meta
79-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
79+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
8080
with:
8181
context: workflow
8282
images: |
@@ -123,7 +123,7 @@ jobs:
123123
if: ${{ steps.images_exist.outputs.base_exists != 'true' || steps.images_exist.outputs.target_exists != 'true' }}
124124

125125
- name: Build Base Container
126-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
126+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
127127
with:
128128
file: build/Dockerfile
129129
context: "."
@@ -147,15 +147,15 @@ jobs:
147147
echo "full-build: ${{ inputs.full-build }}"
148148
149149
- name: Fetch Cached Artifacts
150-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
150+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
151151
with:
152152
path: ${{ github.workspace }}/dist
153153
key: nginx-ingress-${{ inputs.go-md5 }}
154154
fail-on-cache-miss: true
155155
if: ${{ steps.images_exist.outputs.base_exists != 'true' || steps.images_exist.outputs.target_exists != 'true' }}
156156

157157
- name: Build Docker image
158-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
158+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
159159
id: build-push
160160
with:
161161
file: build/Dockerfile
@@ -203,10 +203,9 @@ jobs:
203203
id: docker-scout
204204
uses: docker/scout-action@6ac950eb733f8b2811f25c05d97bfb3d181b8026 # v1.15.1
205205
with:
206-
command: cves,recommendations
206+
command: cves
207207
image: ${{ steps.meta.outputs.tags }}
208208
ignore-base: true
209-
only-fixed: true
210209
sarif-file: "${{ inputs.image }}-results/scout.sarif"
211210
write-comment: false
212211
github-token: ${{ secrets.GITHUB_TOKEN }} # to be able to write the comment

.github/workflows/build-ot-dependency.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Docker meta
7171
id: meta
72-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
72+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
7373
with:
7474
images: |
7575
name=ghcr.io/nginxinc/dependencies/nginx-ot,enable=true
@@ -80,7 +80,7 @@ jobs:
8080
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
8181

8282
- name: Build and push
83-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
83+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
8484
with:
8585
file: ./Dockerfile
8686
context: "."

.github/workflows/build-plus.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989

9090
- name: Docker meta
9191
id: meta
92-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
92+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
9393
with:
9494
images: |
9595
name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic${{ contains(inputs.nap-modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap-modules, 'waf') && '-nap' || '' }}${{ contains(inputs.image, 'v5') && '-v5' || '' }}/nginx-plus-ingress
@@ -130,7 +130,7 @@ jobs:
130130
if: ${{ steps.images_exist.outputs.base_exists != 'true' || steps.images_exist.outputs.target_exists != 'true' }}
131131

132132
- name: Build Base Container
133-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
133+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
134134
with:
135135
file: build/Dockerfile
136136
context: "."
@@ -160,15 +160,15 @@ jobs:
160160
echo "full-build: ${{ inputs.full-build }}"
161161
162162
- name: Fetch Cached Artifacts
163-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
163+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
164164
with:
165165
path: ${{ github.workspace }}/dist
166166
key: nginx-ingress-${{ inputs.go-md5 }}
167167
fail-on-cache-miss: true
168168
if: ${{ steps.images_exist.outputs.base_exists != 'true' || steps.images_exist.outputs.target_exists != 'true' }}
169169

170170
- name: Build Docker image
171-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
171+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
172172
id: build-push
173173
with:
174174
file: build/Dockerfile
@@ -224,10 +224,9 @@ jobs:
224224
id: docker-scout
225225
uses: docker/scout-action@6ac950eb733f8b2811f25c05d97bfb3d181b8026 # v1.15.1
226226
with:
227-
command: cves,recommendations
227+
command: cves
228228
image: ${{ steps.meta.outputs.tags }}
229229
ignore-base: true
230-
only-fixed: true
231230
sarif-file: "${{ inputs.image }}-results/scout.sarif"
232231
write-comment: false
233232
github-token: ${{ secrets.GITHUB_TOKEN }} # to be able to write the comment

.github/workflows/build-single-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191

9292
- name: Fetch Cached Binary Artifacts
9393
id: binary-cache
94-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
94+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
9595
with:
9696
path: ${{ github.workspace }}/dist
9797
key: nginx-ingress-${{ steps.vars.outputs.go_code_md5 }}

.github/workflows/build-test-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
password: ${{ steps.auth.outputs.access_token }}
5050

5151
- name: Build Test-Runner Container
52-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
52+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
5353
with:
5454
file: tests/Dockerfile
5555
context: "."

.github/workflows/build-ubi-dependency.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- build/dependencies/Dockerfile.ubi-ppc64le
8+
- build/dependencies/Dockerfile.ubi
99
workflow_dispatch:
1010
inputs:
1111
nginx_version:
@@ -58,7 +58,7 @@ jobs:
5858
if [ -n "${{ inputs.nginx_version }}" ]; then
5959
nginx_v=${{ inputs.nginx_version }}
6060
else
61-
nginx_v=$(grep -m1 'FROM nginx:' <build/dependencies/Dockerfile.ubi-ppc64le | cut -d '@' -f1 | awk -F'[: ]' '{print $3}')
61+
nginx_v=$(grep -m1 'FROM nginx:' <build/dependencies/Dockerfile.ubi | cut -d '@' -f1 | awk -F'[: ]' '{print $3}')
6262
fi
6363
target_image=${{ env.IMAGE_NAME }}:nginx-${nginx_v}
6464
if docker manifest inspect ${target_image}; then
@@ -108,7 +108,7 @@ jobs:
108108

109109
- name: Docker meta
110110
id: meta
111-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
111+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
112112
with:
113113
images: |
114114
name=${{ env.IMAGE_NAME }},enable=true
@@ -118,9 +118,9 @@ jobs:
118118
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
119119

120120
- name: Build and push
121-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
121+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
122122
with:
123-
file: ./build/dependencies/Dockerfile.ubi-ppc64le
123+
file: ./build/dependencies/Dockerfile.ubi
124124
context: "."
125125
pull: true
126126
push: true

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
120120
- name: Fetch Cached Binary Artifacts
121121
id: binary-cache
122-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
122+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
123123
with:
124124
path: ${{ github.workspace }}/dist
125125
key: nginx-ingress-${{ steps.vars.outputs.go_code_md5 }}
@@ -227,7 +227,7 @@ jobs:
227227
if: ${{ needs.checks.outputs.binary_cache_hit != 'true' }}
228228

229229
- name: Upload coverage to Codecov
230-
uses: codecov/codecov-action@968872560f81e7bdde9272853e65f2507c0eca7c # v5.0.0
230+
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
231231
with:
232232
files: ./coverage.txt
233233
token: ${{ secrets.CODECOV_TOKEN }} # required
@@ -280,7 +280,7 @@ jobs:
280280
if: ${{ needs.checks.outputs.binary_cache_hit != 'true' }}
281281

282282
- name: Store Artifacts in Cache
283-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
283+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
284284
with:
285285
path: ${{ github.workspace }}/dist
286286
key: nginx-ingress-${{ needs.checks.outputs.go_code_md5 }}
@@ -432,7 +432,7 @@ jobs:
432432
if: ${{ ( needs.checks.outputs.forked_workflow == 'false' || needs.checks.outputs.docs_only == 'false' ) && steps.stable_exists.outputs.exists != 'true' }}
433433

434434
- name: Fetch Cached Artifacts
435-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
435+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
436436
with:
437437
path: ${{ github.workspace }}/dist
438438
key: nginx-ingress-${{ needs.checks.outputs.go_code_md5 }}
@@ -443,7 +443,7 @@ jobs:
443443
if: ${{ needs.checks.outputs.forked_workflow == 'true' && needs.checks.outputs.docs_only == 'false' }}
444444

445445
- name: Build Docker Image ${{ matrix.base-os }}
446-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
446+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
447447
with:
448448
file: build/Dockerfile
449449
context: "."
@@ -467,6 +467,10 @@ jobs:
467467
kind load docker-image "${{ matrix.image }}:${{ matrix.tag }}" --name ${{ github.run_id }}
468468
if: ${{ steps.stable_exists.outputs.exists != 'true' && needs.checks.outputs.docs_only == 'false' }}
469469

470+
- name: Create Plus Secret
471+
run: kubectl create secret generic license-token --from-literal=license.jwt="${{ secrets.PLUS_JWT }}" --type="nginx.com/license"
472+
if: ${{ matrix.type == 'plus' && steps.stable_exists.outputs.exists != 'true' && needs.checks.outputs.docs_only == 'false' }}
473+
470474
- name: Install Chart
471475
run: >
472476
helm install
@@ -561,7 +565,7 @@ jobs:
561565
if: ${{ needs.checks.outputs.forked_workflow == 'false' && needs.checks.outputs.docs_only == 'false' }}
562566

563567
- name: Build Test-Runner Container
564-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
568+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
565569
with:
566570
file: tests/Dockerfile
567571
context: "."

0 commit comments

Comments
 (0)