-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (39 loc) · 1.07 KB
/
cdk-deploy.yml
File metadata and controls
46 lines (39 loc) · 1.07 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
name: Deploy infrastructure
on:
workflow_dispatch:
inputs:
ref:
description: 'Branch, tag or commit SHA to deploy'
required: false
default: 'master'
type: string
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-central-1
role-to-assume: ${{ secrets.AWS_OIDC }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'cdk/package-lock.json'
- name: Install CDK dependencies
working-directory: ./cdk
run: npm ci
- name: Install AWS CDK CLI
run: npm install -g aws-cdk
- name: CDK Deploy
working-directory: ./cdk
run: cdk deploy --require-approval never