forked from shlee322/delivery-tracker
-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (51 loc) · 1.56 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Deploy Lambda through Cloudformatin
on:
push:
branches:
- master
jobs:
build:
name: Start self-hosted EC2 runner
runs-on: ubuntu-18.04
strategy:
max-parallel: 1
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Delete Caches
run: |
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
- name: Install Dependencies
run: |
sudo apt-get update
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install -y unzip curl
- name: Install aws-cli
uses: hannut91/[email protected]
with:
args: --version
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ACTIONS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ACTIONS_AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
- name: Set System Locale
run: export LANG=C.utf8
- name: Build & Packaging & Deploy
run: |
cd /home/runner/work/delivery-tracker/delivery-tracker/packages/apiserver/
rm -rf dist
rm -rf node_modules
yarn setup