File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments