File tree Expand file tree Collapse file tree 3 files changed +68
-0
lines changed Expand file tree Collapse file tree 3 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : AWS SAM Deploy
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+ release :
9+ types : [ published ]
10+
11+ jobs :
12+ deploy :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v1
16+ - name : Build with SAM
17+ uses : tkt-actions/aws-sam-cli@v1
18+ with :
19+ cmd : sam build
20+ - name : Publish with SAM
21+ if : github.event_name == 'release'
22+ uses : tkt-actions/aws-sam-cli@v1
23+ with :
24+ cmd : |
25+ sam deploy --parameter-overrides "Version=$(git describe --tags)"
26+ env :
27+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
28+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
29+ AWS_DEFAULT_REGION : us-east-1
Original file line number Diff line number Diff line change 1+ version = 0.1
2+
3+ [default .deploy .parameters ]
4+ stack_name = " zae-lambda-java-gate"
5+ s3_bucket = " aws-sam-cli-managed-default-samclisourcebucket-ain69asg8go5"
6+ s3_prefix = " zae-lambda-java-gate"
7+ region = " us-east-1"
8+ capabilities = " CAPABILITY_IAM"
9+ confirm_changeset = false
Original file line number Diff line number Diff line change 1+ AWSTemplateFormatVersion : ' 2010-09-09'
2+ Transform : AWS::Serverless-2016-10-31
3+ Description : co.zeroae.gate
4+
5+ Parameters :
6+ Version :
7+ Type : String
8+ Description : The Layer version (SNAPSHOT, 1.0.0, etc...)
9+
10+ Resources :
11+ ZAEGateLambdaLayer :
12+ Type : AWS::Serverless::LayerVersion
13+ Metadata :
14+ BuildMethod : java8.al2
15+ Properties :
16+ LayerName : zae-lambda-java-gate
17+ Description : !Sub
18+ - ZeroAE's GATE Lambda Layer ${version}
19+ - version : !Ref Version
20+ ContentUri : .
21+ CompatibleRuntimes :
22+ - java11
23+ - java8.al2
24+ LicenseInfo : ' AGPL-3.0'
25+ RetentionPolicy : Retain
26+
27+ Outputs :
28+ ZAEGateLambdaLayer :
29+ Description : " ZeroAE's GATE Lambda ARN"
30+ Value : !Ref ZAEGateLambdaLayer
You can’t perform that action at this time.
0 commit comments