Skip to content

Commit

Permalink
try fix the concurrency problem
Browse files Browse the repository at this point in the history
  • Loading branch information
emileten committed Feb 22, 2024
1 parent e6becdc commit 9724a6d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
npx cdk deploy --ci --all --require-approval never
deactivate
cd -
- name: Release synth lock
if: always()
run: |
# see https://github.com/aws/aws-cdk/issues/24946
if [-d "integration_tests/cdk/cdk.out"]; then
ls -la integration_tests/cdk/cdk.out
rm -f integration_tests/cdk/cdk.out/synth.lock
fi
- name: Tear down any infrastructure
if: always()
Expand All @@ -68,8 +79,5 @@ jobs:
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
npx cdk destroy --ci --all --force
fi

0 comments on commit 9724a6d

Please sign in to comment.