Skip to content

Commit a623e42

Browse files
Create cdk-deploy.yml
Needed to run action from other branches
1 parent 2362b1b commit a623e42

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/cdk-deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy infrastructure
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
id-token: write
7+
contents: read
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Configure AWS Credentials
17+
uses: aws-actions/configure-aws-credentials@v4
18+
with:
19+
aws-region: eu-central-1
20+
role-to-assume: ${{ secrets.AWS_OIDC_ROLE }}
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '22'
26+
cache: 'npm'
27+
cache-dependency-path: 'cdk/package-lock.json'
28+
29+
- name: Install CDK dependencies
30+
working-directory: ./cdk
31+
run: npm ci
32+
33+
- name: Install AWS CDK CLI
34+
run: npm install -g aws-cdk
35+
36+
- name: CDK Deploy
37+
working-directory: ./cdk
38+
run: cdk deploy --require-approval never
39+

0 commit comments

Comments
 (0)