-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.01 KB
/
deploy.yml
File metadata and controls
51 lines (41 loc) · 1.01 KB
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
name: deploy
on:
push:
branches: [mainline]
workflow_dispatch:
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: false
env:
AWS_REGION: "us-west-2"
STAGE: "prod"
jobs:
build:
permissions:
contents: read
uses: ./.github/workflows/build.yml
deploy:
needs: build
runs-on: ubuntu-latest
environment: prod
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- uses: actions/download-artifact@v8
with:
name: cdk-out
path: build/cdk.out
- uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.CDK_DEPLOY_ROLE_ARN }}
aws-region: ${{ env.AWS_REGION }}
- name: Deploy stacks
run: npx cdk deploy *-${{ env.STAGE }} --app build/cdk.out --require-approval never