Skip to content

Commit 9c268fa

Browse files
authored
Upgrade pipeline (#487)
1 parent 38cc5c7 commit 9c268fa

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

.github/workflows/pipeline.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
CARGO_TERM_COLOR: always
2626
SAM_TEMPLATE_X86_64: template-x86_64.yaml
2727
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
2929
GITHUB_RUNNER_CHINA_ROLE: arn:aws-cn:iam::075528433517:role/GitHubRunnerRole
3030
BETA_STACK_NAME: lambda-adapter-beta
3131
BETA_PIPELINE_EXECUTION_ROLE: arn:aws:iam::477159140107:role/aws-sam-cli-managed-beta-pip-PipelineExecutionRole-13NXRWTRTHDCJ
@@ -76,7 +76,7 @@ jobs:
7676

7777

7878
build:
79-
needs: [test]
79+
needs: [ test ]
8080
runs-on: ubuntu-20.04
8181
steps:
8282
- uses: actions/checkout@v3
@@ -136,7 +136,7 @@ jobs:
136136
path: build-arm64.tar
137137

138138
package-beta:
139-
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
139+
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
140140
needs: [ build ]
141141
runs-on: ubuntu-20.04
142142
steps:
@@ -226,8 +226,8 @@ jobs:
226226
docker manifest push 477159140107.dkr.ecr.ap-northeast-1.amazonaws.com/awsguru/aws-lambda-adapter:latest
227227
228228
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 ]
231231
runs-on: ubuntu-20.04
232232
steps:
233233
- uses: actions/checkout@v3
@@ -289,8 +289,8 @@ jobs:
289289
--role-arn ${BETA_CLOUDFORMATION_EXECUTION_ROLE}
290290
291291
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 ]
294294
runs-on: ubuntu-20.04
295295
steps:
296296
- name: Install stable toolchain
@@ -346,7 +346,7 @@ jobs:
346346
347347
- uses: dkershner6/aws-ssm-getparameters-action@v1
348348
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,
350350
/lambda-web-adapter/e2e/httpbin/zip/http-api-endpoint = HTTPBIN_ZIP_HTTP_ENDPOINT,
351351
/lambda-web-adapter/e2e/httpbin/zip/alb-endpoint = HTTPBIN_ZIP_ALB_ENDPOINT,
352352
/lambda-web-adapter/e2e/httpbin/zip/function-url = HTTPBIN_ZIP_FURL_ENDPOINT"
@@ -360,8 +360,8 @@ jobs:
360360
361361
362362
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 ]
365365
runs-on: ubuntu-20.04
366366
steps:
367367
- name: Install stable toolchain
@@ -418,7 +418,7 @@ jobs:
418418
419419
- uses: dkershner6/aws-ssm-getparameters-action@v1
420420
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,
422422
/lambda-web-adapter/e2e/httpbin/oci/http-api-endpoint = HTTPBIN_OCI_HTTP_ENDPOINT,
423423
/lambda-web-adapter/e2e/httpbin/oci/alb-endpoint = HTTPBIN_OCI_ALB_ENDPOINT,
424424
/lambda-web-adapter/e2e/httpbin/oci/function-url = HTTPBIN_OCI_FURL_ENDPOINT"
@@ -433,8 +433,8 @@ jobs:
433433
434434
435435
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 ]
438438
runs-on: ubuntu-20.04
439439
outputs:
440440
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -444,7 +444,7 @@ jobs:
444444
run: echo "matrix={\"include\":$(jq -r tostring .github/workflows/gamma.json)}" >> $GITHUB_OUTPUT
445445

446446
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' }}
448448
needs: [ e2e-test-zip, e2e-test-oci ]
449449
runs-on: ubuntu-20.04
450450
outputs:
@@ -455,7 +455,7 @@ jobs:
455455
run: echo "matrix={\"include\":$(jq -r tostring .github/workflows/prod.json)}" >> $GITHUB_OUTPUT
456456

457457
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' }}
459459
needs: [ e2e-test-zip, e2e-test-oci ]
460460
runs-on: ubuntu-20.04
461461
outputs:
@@ -466,7 +466,7 @@ jobs:
466466
run: echo "matrix={\"include\":$(jq -r tostring .github/workflows/cn-prod.json)}" >> $GITHUB_OUTPUT
467467

468468
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' }}
470470
needs: [ e2e-test-zip, e2e-test-oci ]
471471
runs-on: ubuntu-20.04
472472
outputs:
@@ -477,7 +477,7 @@ jobs:
477477
run: echo "matrix={\"include\":$(jq -r tostring .github/workflows/cn-gamma.json)}" >> $GITHUB_OUTPUT
478478

479479
package-gamma:
480-
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
480+
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
481481
needs: [ build, load-gamma-matrix ]
482482
runs-on: ubuntu-20.04
483483
strategy:
@@ -550,7 +550,7 @@ jobs:
550550
path: packaged-gamma-arm64-${{ matrix.region }}.yaml
551551

552552
package-prod:
553-
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
553+
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
554554
needs: [ build, load-prod-matrix ]
555555
runs-on: ubuntu-20.04
556556
strategy:
@@ -623,7 +623,7 @@ jobs:
623623
path: packaged-prod-arm64-${{ matrix.region }}.yaml
624624

625625
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' }}
627627
needs: [ build, load-china-gamma-matrix ]
628628
runs-on: ubuntu-20.04
629629
strategy:
@@ -699,7 +699,7 @@ jobs:
699699

700700

701701
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' }}
703703
needs: [ build, load-china-prod-matrix ]
704704
runs-on: ubuntu-20.04
705705
strategy:
@@ -774,7 +774,7 @@ jobs:
774774
path: packaged-china-prod-arm64-${{ matrix.region }}.yaml
775775

776776
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' }}
778778
needs: [ e2e-test-zip, e2e-test-oci, package-gamma ]
779779
runs-on: ubuntu-20.04
780780
outputs:
@@ -785,8 +785,8 @@ jobs:
785785
run: echo "matrix={\"include\":$(jq -r tostring .github/workflows/gamma.json)}" >> $GITHUB_OUTPUT
786786

787787
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 ]
790790
runs-on: ubuntu-20.04
791791
strategy:
792792
matrix: ${{fromJSON(needs.load-gamma-matrix2.outputs.matrix)}}
@@ -863,7 +863,7 @@ jobs:
863863

864864
deploy-prod:
865865
if: ${{ github.event_name == 'release' }}
866-
needs: [load-prod-matrix2]
866+
needs: [ load-prod-matrix2 ]
867867
runs-on: ubuntu-20.04
868868
environment: prod
869869
strategy:
@@ -930,8 +930,8 @@ jobs:
930930
--role-arn ${{ matrix.cloudformation_execution_role }}
931931
932932
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 ]
935935
runs-on: ubuntu-20.04
936936
outputs:
937937
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -942,7 +942,7 @@ jobs:
942942

943943
deploy-china-gamma:
944944
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
945-
needs: [load-china-gamma-matrix2]
945+
needs: [ load-china-gamma-matrix2 ]
946946
runs-on: ubuntu-20.04
947947
environment: prod
948948
strategy:
@@ -1008,11 +1008,11 @@ jobs:
10081008
--image-repository ${{ matrix.image_repository }} \
10091009
--no-fail-on-empty-changeset \
10101010
--role-arn ${{ matrix.cloudformation_execution_role }}
1011-
1011+
10121012

10131013
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 ]
10161016
runs-on: ubuntu-20.04
10171017
outputs:
10181018
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -1023,7 +1023,7 @@ jobs:
10231023

10241024
deploy-china-prod:
10251025
if: ${{ github.event_name == 'release' }}
1026-
needs: [load-china-prod-matrix2]
1026+
needs: [ load-china-prod-matrix2 ]
10271027
runs-on: ubuntu-20.04
10281028
environment: prod
10291029
strategy:
@@ -1093,7 +1093,7 @@ jobs:
10931093

10941094
publish-to-public-ecr:
10951095
if: ${{ github.event_name == 'release' }}
1096-
needs: [deploy-prod]
1096+
needs: [ deploy-prod ]
10971097
runs-on: ubuntu-20.04
10981098
steps:
10991099
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)