@@ -154,24 +154,6 @@ jobs:
154
154
with :
155
155
path : ${{ github.workspace }}/nginx-ingress
156
156
key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}
157
- - name : Fetch N+ Certificates
158
- env :
159
- CRT : ${{ secrets.NGINX_CRT }}
160
- KEY : ${{ secrets.NGINX_KEY }}
161
- run : |
162
- echo "${CRT}" | base64 --decode > nginx-repo.crt
163
- echo "${KEY}" | base64 --decode > nginx-repo.key
164
- if : matrix.type == 'plus'
165
- - name : Fetch N+ AppProtect Certificates
166
- env :
167
- CRT : ${{ secrets.NGINX_AP_CRT }}
168
- KEY : ${{ secrets.NGINX_AP_KEY }}
169
- RHEL_LICENSE : ${{ secrets.RHEL_LICENSE }}
170
- run : |
171
- echo "${CRT}" | base64 --decode > nginx-repo.crt
172
- echo "${KEY}" | base64 --decode > nginx-repo.key
173
- echo "${RHEL_LICENSE}" | base64 --decode > rhel_license
174
- if : matrix.type == 'plus-ap' || matrix.type == 'plus-ap-openshift'
175
157
- name : Docker Buildx
176
158
uses : docker/setup-buildx-action@v1
177
159
with :
@@ -203,8 +185,8 @@ jobs:
203
185
target : ${{ matrix.target }}
204
186
tags : ${{ env.DOCKER_IMAGE }}:${{ needs.binary.outputs.version }}
205
187
secrets : |
206
- nginx-repo.crt=${{ secrets.NGINX_CRT }}
207
- nginx-repo.key=${{ secrets.NGINX_KEY }}
188
+ " nginx-repo.crt=${{ secrets.KIC_NGINX_CRT }}"
189
+ " nginx-repo.key=${{ secrets.KIC_NGINX_KEY }}"
208
190
if : matrix.type == 'plus'
209
191
- name : Build AP Docker Image ${{ matrix.image }}
210
192
uses : docker/build-push-action@v2
@@ -216,9 +198,9 @@ jobs:
216
198
target : ${{ matrix.target }}
217
199
tags : ${{ env.DOCKER_IMAGE }}:${{ needs.binary.outputs.version }}
218
200
secrets : |
219
- nginx-repo.crt=${{ secrets.NGINX_AP_CRT }}
220
- nginx-repo.key=${{ secrets.NGINX_AP_KEY }}
221
- rhel_license=${{ secrets.RHEL_LICENSE }}
201
+ " nginx-repo.crt=${{ secrets.KIC_NGINX_AP_CRT }}"
202
+ " nginx-repo.key=${{ secrets.KIC_NGINX_AP_KEY }}"
203
+ " rhel_license=${{ secrets.KIC_RHEL_LICENSE }}"
222
204
if : matrix.type == 'plus-ap' || matrix.type == 'plus-ap-openshift'
223
205
224
206
smoke-tests :
@@ -344,22 +326,6 @@ jobs:
344
326
with :
345
327
path : ${{ github.workspace }}/nginx-ingress
346
328
key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}
347
- - name : Fetch N+ Certificates
348
- env :
349
- CRT : ${{ secrets.NGINX_CRT }}
350
- KEY : ${{ secrets.NGINX_KEY }}
351
- run : |
352
- echo "${CRT}" | base64 --decode > nginx-repo.crt
353
- echo "${KEY}" | base64 --decode > nginx-repo.key
354
- if : matrix.type == 'plus'
355
- - name : Fetch N+ AppProtect Certificates
356
- env :
357
- CRT : ${{ secrets.NGINX_AP_CRT }}
358
- KEY : ${{ secrets.NGINX_AP_KEY }}
359
- run : |
360
- echo "${CRT}" | base64 --decode > nginx-repo.crt
361
- echo "${KEY}" | base64 --decode > nginx-repo.key
362
- if : matrix.type == 'plus-ap'
363
329
- name : Docker Buildx
364
330
uses : docker/setup-buildx-action@v1
365
331
with :
@@ -393,8 +359,8 @@ jobs:
393
359
tags : ${{ matrix.image }}:${{ matrix.tag }}
394
360
load : true
395
361
secrets : |
396
- nginx-repo.crt=${{ secrets.NGINX_CRT }}
397
- nginx-repo.key=${{ secrets.NGINX_KEY }}
362
+ " nginx-repo.crt=${{ secrets.KIC_NGINX_CRT }}"
363
+ " nginx-repo.key=${{ secrets.KIC_NGINX_KEY }}"
398
364
if : matrix.type == 'plus'
399
365
- name : Build AP Docker Image ${{ matrix.image }}
400
366
uses : docker/build-push-action@v2
@@ -407,8 +373,8 @@ jobs:
407
373
tags : ${{ matrix.image }}:${{ matrix.tag }}
408
374
load : true
409
375
secrets : |
410
- nginx-repo.crt=${{ secrets.NGINX_AP_CRT }}
411
- nginx-repo.key=${{ secrets.NGINX_AP_KEY }}
376
+ " nginx-repo.crt=${{ secrets.KIC_NGINX_AP_CRT }}"
377
+ " nginx-repo.key=${{ secrets.KIC_NGINX_AP_KEY }}"
412
378
if : matrix.type == 'plus-ap'
413
379
- name : Build Test-Runner Container
414
380
uses : docker/build-push-action@v2
@@ -468,8 +434,8 @@ jobs:
468
434
name : Helm Tests
469
435
runs-on : ${{ matrix.os }}
470
436
needs : [build, binary, unit-tests]
471
- if :
472
- github.event_name == 'push' && contains(github.ref, 'release') ||
437
+ if :
438
+ github.event_name == 'push' && contains(github.ref, 'release') ||
473
439
github.event_name == 'schedule'
474
440
env :
475
441
NGINX_HTTP_PORT : 8080
@@ -498,14 +464,6 @@ jobs:
498
464
with :
499
465
path : ${{ github.workspace }}/nginx-ingress
500
466
key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}
501
- - name : Fetch N+ Certificates
502
- env :
503
- CRT : ${{ secrets.NGINX_CRT }}
504
- KEY : ${{ secrets.NGINX_KEY }}
505
- run : |
506
- echo "${CRT}" | base64 --decode > nginx-repo.crt
507
- echo "${KEY}" | base64 --decode > nginx-repo.key
508
- if : matrix.type == 'plus'
509
467
- name : Docker Buildx
510
468
uses : docker/setup-buildx-action@v1
511
469
with :
@@ -528,8 +486,8 @@ jobs:
528
486
tags : ${{ matrix.image }}:${{ matrix.tag }}
529
487
load : true
530
488
secrets : |
531
- nginx-repo.crt=${{ secrets.NGINX_CRT }}
532
- nginx-repo.key=${{ secrets.NGINX_KEY }}
489
+ " nginx-repo.crt=${{ secrets.KIC_NGINX_CRT }}"
490
+ " nginx-repo.key=${{ secrets.KIC_NGINX_KEY }}"
533
491
- name : Deploy Kubernetes
534
492
id : k8s
535
493
run : |
@@ -617,7 +575,7 @@ jobs:
617
575
restore-keys : |
618
576
${{ runner.os }}-buildx-
619
577
- name : DockerHub Login
620
- uses : docker/login-action@v1
578
+ uses : docker/login-action@v1
621
579
with :
622
580
username : ${{ secrets.DOCKER_USERNAME }}
623
581
password : ${{ secrets.DOCKER_PASSWORD }}
@@ -696,8 +654,8 @@ jobs:
696
654
tags : gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/${{ matrix.tags }}
697
655
push : true
698
656
secrets : |
699
- nginx-repo.crt=${{ secrets.NGINX_CRT }}
700
- nginx-repo.key=${{ secrets.NGINX_KEY }}
657
+ " nginx-repo.crt=${{ secrets.KIC_NGINX_CRT }}"
658
+ " nginx-repo.key=${{ secrets.KIC_NGINX_KEY }}"
701
659
if : matrix.image == 'nginx-plus-ingress'
702
660
- name : Push Plus AP to GCR
703
661
uses : docker/build-push-action@v2
@@ -710,19 +668,19 @@ jobs:
710
668
tags : gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/${{ matrix.tags }}
711
669
push : true
712
670
secrets : |
713
- nginx-repo.crt=${{ secrets.NGINX_AP_CRT }}
714
- nginx-repo.key=${{ secrets.NGINX_AP_KEY }}
715
- rhel_license=${{ secrets.RHEL_LICENSE }}
671
+ " nginx-repo.crt=${{ secrets.KIC_NGINX_AP_CRT }}"
672
+ " nginx-repo.key=${{ secrets.KIC_NGINX_AP_KEY }}"
673
+ " rhel_license=${{ secrets.KIC_RHEL_LICENSE }}"
716
674
if : matrix.image == 'nginx-plus-ingress-ap'
717
-
675
+
718
676
release-plus-docker :
719
677
name : Release Plus Images
720
678
runs-on : ubuntu-18.04
721
679
needs : [build, binary, unit-tests, publish-plus-docker]
722
680
if : github.event_name == 'create' && contains(github.ref, 'refs/tags/')
723
681
steps :
724
682
- name : GCR Login
725
- uses : docker/login-action@v1
683
+ uses : docker/login-action@v1
726
684
with :
727
685
registry : gcr.io
728
686
username : _json_key
0 commit comments