-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1.14 KB
/
backend.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
name: Deploy CDK App
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '21.1.0' # Set this to your Node.js version
cache: 'yarn'
- name: Install Dependencies
run: yarn install
working-directory: backend
- name: Install AWS CDK
run: yarn global add aws-cdk
working-directory: backend
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Deploy CDK App
run: cdk deploy --require-approval never
working-directory: backend
env:
SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
ACM_CERTIFICATE_ARN: ${{ secrets.ACM_CERTIFICATE_ARN }}
CDN_DOMAIN_NAME: ${{ secrets.CDN_DOMAIN_NAME }}