From b4fe0f6d480b652e67763802a0aa281e010a42d5 Mon Sep 17 00:00:00 2001 From: emileten Date: Wed, 21 Feb 2024 19:23:00 +0300 Subject: [PATCH] when tearing down the infrastructure, synthesize the cloud formation assets into another directory to avoid conflicts --- .github/workflows/deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8f34c33..82245aa 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,7 +1,6 @@ name: Test deployment on: - pull_request: merge_group: branches: [ main ] @@ -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