forked from bloom-housing/bloom-infra
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (49 loc) · 1.52 KB
/
cdk_synth copy.yaml
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
name: CDK Synth
on: [push]
# Required permissions
permissions: read-all
jobs:
synth:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: install cdk
run: npm install -g aws-cdk
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
network:
- 'doorway-network/**'
app:
- 'doorway-app-servers/**'
- name: yarn-install-network
if: steps.filter.outputs.network == 'true'
working-directory: ./doorway-network
run: yarn install
- name: network-synth
if: steps.filter.outputs.network == 'true'
run: cdk synth
working-directory: ./doorway-network
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-1
ENVIRONMENT: dev
- name: yarn-install-app
if: steps.filter.outputs.app == 'true'
working-directory: ./doorway-app-servers
run: yarn install
- name: network-synth
if: steps.filter.outputs.app == 'true'
run: cdk synth
working-directory: ./doorway-app-servers
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-1
ENVIRONMENT: dev