-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 963 Bytes
/
cdk-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
name: CDK Deploy
on:
workflow_dispatch:
push:
branches: ["master"]
jobs:
aws_cdk:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkoutactions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install
- name: Install AWS CDK
run: npm i -g aws-cdk
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ${{ secrets.AWS_REGION || 'us-east-1'}}
- name: Bootstrap CDK
run: cdk bootstrap
- name: Synth stack
run: cdk synth
- name: Deploy stack
run: cdk deploy --all --require-approval never