File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy API Lambda
2+ on :
3+ push :
4+ branches :
5+ - main
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ uses : ./.github/workflows/build-api-lambda.yml
11+
12+ deploy :
13+ runs-on : ubuntu-latest
14+ needs : build
15+ environment : docs-api-edge
16+ env :
17+ ZIP_FILE : api-lambda.zip
18+ steps :
19+ - uses : actions/checkout@v4
20+ - name : Download bootstrap binary
21+ uses : actions/download-artifact@v4
22+ with :
23+ name : api-lambda-binary
24+
25+ - name : Download bootstrap binary
26+ uses : actions/download-artifact@v4
27+ with :
28+ name : api-lambda-binary # Defined in build-api-lambda.yml
29+
30+ - name : Create zip
31+ run : |
32+ zip -j "${ZIP_FILE}" ./bootstrap
33+
34+ - uses : aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
35+ with :
36+ role-to-assume : arn:aws:iam::197730964718:role/elastic-docs-v3-api-deployer-edge
37+ aws-region : us-east-1
38+
39+ - name : Upload Lambda function
40+ run : |
41+ aws lambda update-function-code \
42+ --function-name elastic-docs-v3-edge-api \
43+ --zip-file "fileb://${ZIP_FILE}"
You can’t perform that action at this time.
0 commit comments