Steven C commited on
Commit
276d36c
1 Parent(s): 9245d19

Implement GitHub action deployment

Browse files
Files changed (1) hide show
  1. .github/workflows/lambda.yml +36 -0
.github/workflows/lambda.yml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: ML Lambda Deploy
2
+ on:
3
+ push:
4
+
5
+ env:
6
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
8
+ AWS_DEFAULT_REGION: ap-northeast-1
9
+ SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
10
+
11
+
12
+ jobs:
13
+ deploy-development:
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ python-version: ['3.10']
18
+ node-version: [18]
19
+ os: [ubuntu-latest]
20
+ runs-on: ${{ matrix.os }}
21
+ steps:
22
+ - name: Checkout Code
23
+ uses: actions/checkout@v3
24
+ - name: Set up Python 3.10
25
+ uses: actions/setup-python@v3
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+ - uses: actions/setup-node@v3
29
+ with:
30
+ node-version: ${{ matrix.node-version }}
31
+ - name: Install Serverless Framework
32
+ run: npm install -g serverless
33
+ - name: Install NPM dependencies
34
+ run: npm install
35
+ - name: Deploy
36
+ run: sls deploy --stage development --verbose