File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,12 @@ jobs:
71
71
driver : docker
72
72
platforms : linux/amd64,linux/arm64
73
73
- name : install cdk and deps
74
+ working-directory : ../
74
75
run : |
75
-
76
- cdk --version
76
+ npm install
77
+ npx cdk --version
77
78
- name : CDK build
78
- run : cdk synth --verbose --context version="${{ inputs.latest_published_version }}" -o cdk.out
79
+ run : npx cdk synth --verbose --context version="${{ inputs.latest_published_version }}" -o cdk.out
79
80
- name : zip output
80
81
run : zip -r cdk.out.zip cdk.out
81
82
- name : Archive CDK artifacts
Original file line number Diff line number Diff line change 1
1
name : Deploy CDK Layer v2 stack
2
2
3
- env :
4
- CDK_VERSION : 2.44.0
5
-
6
3
permissions :
7
4
id-token : write
8
5
contents : write
88
85
poetry export --format requirements.txt --output requirements.txt
89
86
pip install -r requirements.txt
90
87
- name : install cdk and deps
88
+ working-directory : ../
91
89
run : |
92
- npm install -g "aws-cdk@$CDK_VERSION"
93
- cdk --version
90
+ npm install
91
+ npx cdk --version
94
92
- name : install deps
95
93
run : poetry install
96
94
- name : Download artifact
101
99
- name : unzip artefact
102
100
run : unzip cdk.out.zip
103
101
- name : CDK Deploy Layer
104
- run : cdk deploy --app cdk.out --context region=${{ matrix.region }} 'LayerV2Stack' --require-approval never --verbose --outputs-file cdk-outputs.json
102
+ run : npx cdk deploy --app cdk.out --context region=${{ matrix.region }} 'LayerV2Stack' --require-approval never --verbose --outputs-file cdk-outputs.json
105
103
- name : Store latest Layer ARN
106
104
if : ${{ inputs.stage == 'PROD' }}
107
105
run : |
@@ -118,7 +116,7 @@ jobs:
118
116
if-no-files-found : error
119
117
retention-days : 1
120
118
- name : CDK Deploy Canary
121
- run : cdk deploy --app cdk.out --context region=${{ matrix.region}} --parameters DeployStage="${{ inputs.stage }}" 'CanaryV2Stack' --require-approval never --verbose
119
+ run : npx cdk deploy --app cdk.out --context region=${{ matrix.region}} --parameters DeployStage="${{ inputs.stage }}" 'CanaryV2Stack' --require-approval never --verbose
122
120
123
121
update_v2_layer_arn_docs :
124
122
needs : deploy-cdk-stack
You can’t perform that action at this time.
0 commit comments