File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,12 @@ jobs:
7171 driver : docker
7272 platforms : linux/amd64,linux/arm64
7373 - name : install cdk and deps
74+ working-directory : ../
7475 run : |
75- npm install -g aws-cdk@2.47.0
76- cdk --version
76+ npm install
77+ npx cdk --version
7778 - 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
7980 - name : zip output
8081 run : zip -r cdk.out.zip cdk.out
8182 - name : Archive CDK artifacts
Original file line number Diff line number Diff line change 11name : Deploy CDK Layer v2 stack
22
3- env :
4- CDK_VERSION : 2.44.0
5-
63permissions :
74 id-token : write
85 contents : write
8885 poetry export --format requirements.txt --output requirements.txt
8986 pip install -r requirements.txt
9087 - name : install cdk and deps
88+ working-directory : ../
9189 run : |
92- npm install -g "aws-cdk@$CDK_VERSION"
93- cdk --version
90+ npm install
91+ npx cdk --version
9492 - name : install deps
9593 run : poetry install
9694 - name : Download artifact
10199 - name : unzip artefact
102100 run : unzip cdk.out.zip
103101 - 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
105103 - name : Store latest Layer ARN
106104 if : ${{ inputs.stage == 'PROD' }}
107105 run : |
@@ -118,7 +116,7 @@ jobs:
118116 if-no-files-found : error
119117 retention-days : 1
120118 - 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
122120
123121 update_v2_layer_arn_docs :
124122 needs : deploy-cdk-stack
You can’t perform that action at this time.
0 commit comments