Skip to content

Commit

Permalink
when tearing down the infrastructure, synthesize the cloud formation …
Browse files Browse the repository at this point in the history
…assets into another directory to avoid conflicts
  • Loading branch information
emileten committed Feb 21, 2024
1 parent 92cec0d commit b4fe0f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Test deployment

on:
pull_request:
merge_group:
branches: [ main ]

Expand Down Expand Up @@ -66,11 +65,12 @@ jobs:
run: |
cd integration_tests/cdk
# run this only if we find a 'cdk.out' directory, which means there might be things to tear down
# see https://github.com/aws/aws-cdk/issues/24946
# rm -f cdk.out/synth.lock
if [ -d "cdk.out" ]; then
cd -
source .deployment_venv/bin/activate
cd integration_tests/cdk
# see https://github.com/aws/aws-cdk/issues/24946
# this didn't work : rm -f cdk.out/synth.lock
# so we just duplicate the cdk output to cdk-destroy.out
npx cdk destroy --output cdk-destroy.out --ci --all --force
fi

0 comments on commit b4fe0f6

Please sign in to comment.