25
25
CARGO_TERM_COLOR : always
26
26
SAM_TEMPLATE_X86_64 : template-x86_64.yaml
27
27
SAM_TEMPLATE_ARM64 : template-arm64.yaml
28
- GITHUB_RUNNER_ROLE : arn:aws:iam::238946506962 :role/GitHubRunnerRole
28
+ GITHUB_RUNNER_ROLE : arn:aws:iam::621808641063 :role/GitHubRunnerRole
29
29
GITHUB_RUNNER_CHINA_ROLE : arn:aws-cn:iam::075528433517:role/GitHubRunnerRole
30
30
BETA_STACK_NAME : lambda-adapter-beta
31
31
BETA_PIPELINE_EXECUTION_ROLE : arn:aws:iam::477159140107:role/aws-sam-cli-managed-beta-pip-PipelineExecutionRole-13NXRWTRTHDCJ
76
76
77
77
78
78
build :
79
- needs : [test]
79
+ needs : [ test ]
80
80
runs-on : ubuntu-20.04
81
81
steps :
82
82
- uses : actions/checkout@v3
@@ -136,7 +136,7 @@ jobs:
136
136
path : build-arm64.tar
137
137
138
138
package-beta :
139
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
139
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
140
140
needs : [ build ]
141
141
runs-on : ubuntu-20.04
142
142
steps :
@@ -226,8 +226,8 @@ jobs:
226
226
docker manifest push 477159140107.dkr.ecr.ap-northeast-1.amazonaws.com/awsguru/aws-lambda-adapter:latest
227
227
228
228
deploy-beta :
229
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
230
- needs : [package-beta]
229
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
230
+ needs : [ package-beta ]
231
231
runs-on : ubuntu-20.04
232
232
steps :
233
233
- uses : actions/checkout@v3
@@ -289,8 +289,8 @@ jobs:
289
289
--role-arn ${BETA_CLOUDFORMATION_EXECUTION_ROLE}
290
290
291
291
e2e-test-zip :
292
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
293
- needs : [deploy-beta]
292
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
293
+ needs : [ deploy-beta ]
294
294
runs-on : ubuntu-20.04
295
295
steps :
296
296
- name : Install stable toolchain
@@ -346,7 +346,7 @@ jobs:
346
346
347
347
- uses : dkershner6/aws-ssm-getparameters-action@v1
348
348
with :
349
- parameterPairs : " /lambda-web-adapter/e2e/httpbin/zip/rest-api-endpoint = HTTPBIN_ZIP_REST_ENDPOINT,
349
+ parameterPairs : " /lambda-web-adapter/e2e/httpbin/zip/rest-api-endpoint = HTTPBIN_ZIP_REST_ENDPOINT,
350
350
/lambda-web-adapter/e2e/httpbin/zip/http-api-endpoint = HTTPBIN_ZIP_HTTP_ENDPOINT,
351
351
/lambda-web-adapter/e2e/httpbin/zip/alb-endpoint = HTTPBIN_ZIP_ALB_ENDPOINT,
352
352
/lambda-web-adapter/e2e/httpbin/zip/function-url = HTTPBIN_ZIP_FURL_ENDPOINT"
@@ -360,8 +360,8 @@ jobs:
360
360
361
361
362
362
e2e-test-oci :
363
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
364
- needs : [deploy-beta]
363
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
364
+ needs : [ deploy-beta ]
365
365
runs-on : ubuntu-20.04
366
366
steps :
367
367
- name : Install stable toolchain
@@ -418,7 +418,7 @@ jobs:
418
418
419
419
- uses : dkershner6/aws-ssm-getparameters-action@v1
420
420
with :
421
- parameterPairs : " /lambda-web-adapter/e2e/httpbin/oci/rest-api-endpoint = HTTPBIN_OCI_REST_ENDPOINT,
421
+ parameterPairs : " /lambda-web-adapter/e2e/httpbin/oci/rest-api-endpoint = HTTPBIN_OCI_REST_ENDPOINT,
422
422
/lambda-web-adapter/e2e/httpbin/oci/http-api-endpoint = HTTPBIN_OCI_HTTP_ENDPOINT,
423
423
/lambda-web-adapter/e2e/httpbin/oci/alb-endpoint = HTTPBIN_OCI_ALB_ENDPOINT,
424
424
/lambda-web-adapter/e2e/httpbin/oci/function-url = HTTPBIN_OCI_FURL_ENDPOINT"
@@ -433,8 +433,8 @@ jobs:
433
433
434
434
435
435
load-gamma-matrix :
436
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
437
- needs : [ e2e-test-zip, e2e-test-oci]
436
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
437
+ needs : [ e2e-test-zip, e2e-test-oci ]
438
438
runs-on : ubuntu-20.04
439
439
outputs :
440
440
matrix : ${{ steps.set-matrix.outputs.matrix }}
@@ -444,7 +444,7 @@ jobs:
444
444
run : echo "matrix={\"include\":$(jq -r tostring .github/workflows/gamma.json)}" >> $GITHUB_OUTPUT
445
445
446
446
load-prod-matrix :
447
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
447
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
448
448
needs : [ e2e-test-zip, e2e-test-oci ]
449
449
runs-on : ubuntu-20.04
450
450
outputs :
@@ -455,7 +455,7 @@ jobs:
455
455
run : echo "matrix={\"include\":$(jq -r tostring .github/workflows/prod.json)}" >> $GITHUB_OUTPUT
456
456
457
457
load-china-prod-matrix :
458
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
458
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
459
459
needs : [ e2e-test-zip, e2e-test-oci ]
460
460
runs-on : ubuntu-20.04
461
461
outputs :
@@ -466,7 +466,7 @@ jobs:
466
466
run : echo "matrix={\"include\":$(jq -r tostring .github/workflows/cn-prod.json)}" >> $GITHUB_OUTPUT
467
467
468
468
load-china-gamma-matrix :
469
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
469
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
470
470
needs : [ e2e-test-zip, e2e-test-oci ]
471
471
runs-on : ubuntu-20.04
472
472
outputs :
@@ -477,7 +477,7 @@ jobs:
477
477
run : echo "matrix={\"include\":$(jq -r tostring .github/workflows/cn-gamma.json)}" >> $GITHUB_OUTPUT
478
478
479
479
package-gamma :
480
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
480
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
481
481
needs : [ build, load-gamma-matrix ]
482
482
runs-on : ubuntu-20.04
483
483
strategy :
@@ -550,7 +550,7 @@ jobs:
550
550
path : packaged-gamma-arm64-${{ matrix.region }}.yaml
551
551
552
552
package-prod :
553
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
553
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
554
554
needs : [ build, load-prod-matrix ]
555
555
runs-on : ubuntu-20.04
556
556
strategy :
@@ -623,7 +623,7 @@ jobs:
623
623
path : packaged-prod-arm64-${{ matrix.region }}.yaml
624
624
625
625
package-china-gamma :
626
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
626
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
627
627
needs : [ build, load-china-gamma-matrix ]
628
628
runs-on : ubuntu-20.04
629
629
strategy :
@@ -699,7 +699,7 @@ jobs:
699
699
700
700
701
701
package-china-prod :
702
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
702
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
703
703
needs : [ build, load-china-prod-matrix ]
704
704
runs-on : ubuntu-20.04
705
705
strategy :
@@ -774,7 +774,7 @@ jobs:
774
774
path : packaged-china-prod-arm64-${{ matrix.region }}.yaml
775
775
776
776
load-gamma-matrix2 :
777
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
777
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
778
778
needs : [ e2e-test-zip, e2e-test-oci, package-gamma ]
779
779
runs-on : ubuntu-20.04
780
780
outputs :
@@ -785,8 +785,8 @@ jobs:
785
785
run : echo "matrix={\"include\":$(jq -r tostring .github/workflows/gamma.json)}" >> $GITHUB_OUTPUT
786
786
787
787
deploy-gamma :
788
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
789
- needs : [load-gamma-matrix2]
788
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
789
+ needs : [ load-gamma-matrix2 ]
790
790
runs-on : ubuntu-20.04
791
791
strategy :
792
792
matrix : ${{fromJSON(needs.load-gamma-matrix2.outputs.matrix)}}
@@ -863,7 +863,7 @@ jobs:
863
863
864
864
deploy-prod :
865
865
if : ${{ github.event_name == 'release' }}
866
- needs : [load-prod-matrix2]
866
+ needs : [ load-prod-matrix2 ]
867
867
runs-on : ubuntu-20.04
868
868
environment : prod
869
869
strategy :
@@ -930,8 +930,8 @@ jobs:
930
930
--role-arn ${{ matrix.cloudformation_execution_role }}
931
931
932
932
load-china-gamma-matrix2 :
933
- if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
934
- needs : [ e2e-test-zip, e2e-test-oci, package-china-gamma]
933
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
934
+ needs : [ e2e-test-zip, e2e-test-oci, package-china-gamma ]
935
935
runs-on : ubuntu-20.04
936
936
outputs :
937
937
matrix : ${{ steps.set-matrix.outputs.matrix }}
@@ -942,7 +942,7 @@ jobs:
942
942
943
943
deploy-china-gamma :
944
944
if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
945
- needs : [load-china-gamma-matrix2]
945
+ needs : [ load-china-gamma-matrix2 ]
946
946
runs-on : ubuntu-20.04
947
947
environment : prod
948
948
strategy :
@@ -1008,11 +1008,11 @@ jobs:
1008
1008
--image-repository ${{ matrix.image_repository }} \
1009
1009
--no-fail-on-empty-changeset \
1010
1010
--role-arn ${{ matrix.cloudformation_execution_role }}
1011
-
1011
+
1012
1012
1013
1013
load-china-prod-matrix2 :
1014
- if : ${{ github.event_name == 'release' }}
1015
- needs : [ deploy-china-gamma, package-china-prod]
1014
+ if : ${{ github.event_name == 'release' }}
1015
+ needs : [ deploy-china-gamma, package-china-prod ]
1016
1016
runs-on : ubuntu-20.04
1017
1017
outputs :
1018
1018
matrix : ${{ steps.set-matrix.outputs.matrix }}
@@ -1023,7 +1023,7 @@ jobs:
1023
1023
1024
1024
deploy-china-prod :
1025
1025
if : ${{ github.event_name == 'release' }}
1026
- needs : [load-china-prod-matrix2]
1026
+ needs : [ load-china-prod-matrix2 ]
1027
1027
runs-on : ubuntu-20.04
1028
1028
environment : prod
1029
1029
strategy :
@@ -1093,7 +1093,7 @@ jobs:
1093
1093
1094
1094
publish-to-public-ecr :
1095
1095
if : ${{ github.event_name == 'release' }}
1096
- needs : [deploy-prod]
1096
+ needs : [ deploy-prod ]
1097
1097
runs-on : ubuntu-20.04
1098
1098
steps :
1099
1099
- uses : actions/checkout@v3
0 commit comments