Skip to content

Commit 802888a

Browse files
authored
images to patch sourced from json file (#6326)
1 parent fbeed76 commit 802888a

File tree

7 files changed

+176
-141
lines changed

7 files changed

+176
-141
lines changed

.github/data/patch-images.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
[
2+
{
3+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic/nginx-ingress",
4+
"source_os": "debian",
5+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic/nginx-ingress",
6+
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
7+
},
8+
{
9+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic/nginx-ingress",
10+
"source_os": "alpine",
11+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic/nginx-ingress",
12+
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
13+
},
14+
{
15+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic/nginx-ingress",
16+
"source_os": "ubi",
17+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic/nginx-ingress",
18+
"platforms": "linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
19+
},
20+
{
21+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic/nginx-plus-ingress",
22+
"source_os": "debian",
23+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic/nginx-plus-ingress",
24+
"platforms": "linux/arm64, linux/amd64"
25+
},
26+
{
27+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic/nginx-plus-ingress",
28+
"source_os": "mktpl",
29+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic/nginx-plus-ingress",
30+
"platforms": "linux/arm64, linux/amd64"
31+
},
32+
{
33+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic/nginx-plus-ingress",
34+
"source_os": "alpine",
35+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic/nginx-plus-ingress",
36+
"platforms": "linux/arm64, linux/amd64"
37+
},
38+
{
39+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic/nginx-plus-ingress",
40+
"source_os": "ubi",
41+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic/nginx-plus-ingress",
42+
"platforms": "linux/arm64, linux/amd64"
43+
},
44+
{
45+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-nap/nginx-plus-ingress",
46+
"source_os": "debian",
47+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-nap/nginx-plus-ingress",
48+
"platforms": "linux/amd64"
49+
},
50+
{
51+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-nap/nginx-plus-ingress",
52+
"source_os": "mktpl",
53+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-nap/nginx-plus-ingress",
54+
"platforms": "linux/amd64"
55+
},
56+
{
57+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-nap/nginx-plus-ingress",
58+
"source_os": "ubi",
59+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-nap/nginx-plus-ingress",
60+
"platforms": "linux/amd64"
61+
},
62+
{
63+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-nap-v5/nginx-plus-ingress",
64+
"source_os": "debian",
65+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-nap-v5/nginx-plus-ingress",
66+
"platforms": "linux/amd64"
67+
},
68+
{
69+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-nap-v5/nginx-plus-ingress",
70+
"source_os": "ubi",
71+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-nap-v5/nginx-plus-ingress",
72+
"platforms": "linux/amd64"
73+
},
74+
{
75+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-dos/nginx-plus-ingress",
76+
"source_os": "debian",
77+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-dos/nginx-plus-ingress",
78+
"platforms": "linux/amd64"
79+
},
80+
{
81+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-dos/nginx-plus-ingress",
82+
"source_os": "mktpl",
83+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-dos/nginx-plus-ingress",
84+
"platforms": "linux/amd64"
85+
},
86+
{
87+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-dos/nginx-plus-ingress",
88+
"source_os": "ubi",
89+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-dos/nginx-plus-ingress",
90+
"platforms": "linux/amd64"
91+
},
92+
{
93+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-dos-nap/nginx-plus-ingress",
94+
"source_os": "debian",
95+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-dos-nap/nginx-plus-ingress",
96+
"platforms": "linux/amd64"
97+
},
98+
{
99+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-dos-nap/nginx-plus-ingress",
100+
"source_os": "mktpl",
101+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-dos-nap/nginx-plus-ingress",
102+
"platforms": "linux/amd64"
103+
},
104+
{
105+
"source_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic-dos-nap/nginx-plus-ingress",
106+
"source_os": "ubi",
107+
"target_image": "gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic-dos-nap/nginx-plus-ingress",
108+
"platforms": "linux/amd64"
109+
}
110+
]

.github/workflows/image-promotion.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ jobs:
321321
github_public_registry: true
322322
source_tag: ${{ needs.checks.outputs.stable_tag }}
323323
target_tag: "edge"
324+
branch: ${{ github.ref_name }}
324325
dry_run: false
325326
permissions:
326327
contents: read
@@ -342,6 +343,7 @@ jobs:
342343
az_mktpl_registry: false
343344
source_tag: ${{ needs.checks.outputs.stable_tag }}
344345
target_tag: "edge"
346+
branch: ${{ github.ref_name }}
345347
dry_run: false
346348
permissions:
347349
contents: read

.github/workflows/oss-release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
target_tag:
2525
required: true
2626
type: string
27+
branch:
28+
required: false
29+
type: string
30+
default: "main"
2731
dry_run:
2832
type: boolean
2933
default: false
@@ -50,6 +54,10 @@ on:
5054
target_tag:
5155
required: true
5256
type: string
57+
branch:
58+
required: false
59+
type: string
60+
default: "main"
5361
dry_run:
5462
type: boolean
5563
default: false
@@ -72,6 +80,8 @@ jobs:
7280
steps:
7381
- name: Checkout Repository
7482
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
83+
with:
84+
ref: ${{ inputs.branch }}
7585

7686
- name: Authenticate to Google Cloud
7787
id: gcr-auth
@@ -108,6 +118,8 @@ jobs:
108118
steps:
109119
- name: Checkout Repository
110120
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
121+
with:
122+
ref: ${{ inputs.branch }}
111123

112124
- name: Authenticate to Google Cloud
113125
id: gcr-auth
@@ -155,6 +167,8 @@ jobs:
155167
steps:
156168
- name: Checkout Repository
157169
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
170+
with:
171+
ref: ${{ inputs.branch }}
158172

159173
- name: Authenticate to Google Cloud
160174
id: gcr-auth
@@ -197,6 +211,8 @@ jobs:
197211
steps:
198212
- name: Checkout Repository
199213
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
214+
with:
215+
ref: ${{ inputs.branch }}
200216

201217
- name: Authenticate to Google Cloud
202218
id: gcr-auth
@@ -241,6 +257,8 @@ jobs:
241257
steps:
242258
- name: Checkout Repository
243259
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
260+
with:
261+
ref: ${{ inputs.branch }}
244262

245263
- name: Authenticate to Google Cloud
246264
id: gcr-auth

.github/workflows/plus-release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
target_tag:
2525
required: true
2626
type: string
27+
branch:
28+
required: false
29+
type: string
30+
default: "main"
2731
dry_run:
2832
type: boolean
2933
default: false
@@ -50,6 +54,10 @@ on:
5054
target_tag:
5155
required: true
5256
type: string
57+
branch:
58+
required: false
59+
type: string
60+
default: "main"
5361
dry_run:
5462
type: boolean
5563
default: false
@@ -72,6 +80,8 @@ jobs:
7280
steps:
7381
- name: Checkout Repository
7482
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
83+
with:
84+
ref: ${{ inputs.branch }}
7585

7686
- name: Authenticate to Google Cloud
7787
id: gcr-auth
@@ -108,6 +118,8 @@ jobs:
108118
steps:
109119
- name: Checkout Repository
110120
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
121+
with:
122+
ref: ${{ inputs.branch }}
111123

112124
- name: Authenticate to Google Cloud
113125
id: gcr-auth
@@ -159,6 +171,8 @@ jobs:
159171
steps:
160172
- name: Checkout Repository
161173
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
174+
with:
175+
ref: ${{ inputs.branch }}
162176

163177
- name: Authenticate to Google Cloud
164178
id: gcr-priv-auth
@@ -198,6 +212,8 @@ jobs:
198212
steps:
199213
- name: Checkout Repository
200214
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
215+
with:
216+
ref: ${{ inputs.branch }}
201217

202218
- name: Authenticate to Google Cloud
203219
id: gcr-auth
@@ -245,6 +261,8 @@ jobs:
245261
steps:
246262
- name: Checkout Repository
247263
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
264+
with:
265+
ref: ${{ inputs.branch }}
248266

249267
- name: Authenticate to Google Cloud
250268
id: gcr-auth

.github/workflows/regression.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,12 @@ jobs:
8383
unit-tests:
8484
name: Unit Tests
8585
runs-on: ubuntu-24.04
86+
needs: [checks]
8687
steps:
8788
- name: Checkout Repository
8889
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
90+
with:
91+
ref: ${{ needs.checks.outputs.branch }}
8992

9093
- name: Setup Golang Environment
9194
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
@@ -302,6 +305,7 @@ jobs:
302305
quay_public_registry: true
303306
github_public_registry: true
304307
source_tag: ${{ needs.checks.outputs.stable_tag }}
308+
branch: ${{ needs.checks.outputs.branch }}
305309
target_tag: "nightly"
306310
dry_run: false
307311
permissions:
@@ -323,6 +327,7 @@ jobs:
323327
az_mktpl_registry: false
324328
source_tag: ${{ needs.checks.outputs.stable_tag }}
325329
target_tag: "nightly"
330+
branch: ${{ needs.checks.outputs.branch }}
326331
dry_run: false
327332
permissions:
328333
contents: read

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ jobs:
154154
github_public_registry: true
155155
source_tag: ${{ needs.variables.outputs.source_tag }}
156156
target_tag: ${{ matrix.tag }}
157+
branch: ${{ inputs.release_branch }}
157158
dry_run: ${{ inputs.dry_run }}
158159
permissions:
159160
contents: read
@@ -182,6 +183,7 @@ jobs:
182183
az_mktpl_registry: false
183184
source_tag: ${{ needs.variables.outputs.source_tag }}
184185
target_tag: ${{ inputs.nic_version }}
186+
branch: ${{ inputs.release_branch }}
185187
dry_run: ${{ inputs.dry_run }}
186188
permissions:
187189
contents: read
@@ -208,6 +210,7 @@ jobs:
208210
az_mktpl_registry: false
209211
source_tag: ${{ needs.variables.outputs.source_tag }}
210212
target_tag: ${{ inputs.nic_version }}
213+
branch: ${{ inputs.release_branch }}
211214
dry_run: ${{ inputs.dry_run }}
212215
permissions:
213216
contents: read
@@ -233,6 +236,7 @@ jobs:
233236
az_mktpl_registry: false
234237
source_tag: ${{ needs.variables.outputs.source_tag }}
235238
target_tag: ${{ inputs.nic_version }}
239+
branch: ${{ inputs.release_branch }}
236240
dry_run: ${{ inputs.dry_run }}
237241
permissions:
238242
contents: read
@@ -258,6 +262,7 @@ jobs:
258262
az_mktpl_registry: true
259263
source_tag: ${{ needs.variables.outputs.source_tag }}
260264
target_tag: ${{ inputs.nic_version }}
265+
branch: ${{ inputs.release_branch }}
261266
dry_run: ${{ inputs.dry_run }}
262267
permissions:
263268
contents: read

0 commit comments

Comments
 (0)