Skip to content

Commit

Permalink
add app context for removal
Browse files Browse the repository at this point in the history
  • Loading branch information
addis-samtek committed Dec 11, 2024
1 parent b070e28 commit 9e37e10
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/remove-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ jobs:
echo "Destroying PR-specific stack: ${STACK_NAME}"
cdk destroy "${STACK_NAME}" \
-c environment=${{ env.ENVIRONMENT_NAME }} \
--force
--force \
--exclusively \
--app "npx ts-node bin/zip-lambdas.ts"
echo "Cleanup completed for stack: ${STACK_NAME}"
popd
Expand All @@ -132,7 +134,9 @@ jobs:
echo "Destroying PR-specific stack: ${STACK_NAME}"
cdk destroy "${STACK_NAME}" \
-c environment=${{ env.ENVIRONMENT_NAME }} \
--force
--force \
--exclusively \
--app "npx ts-node bin/zip-lambdas.ts"
echo "Cleanup completed for stack: ${STACK_NAME}"
popd
Expand All @@ -158,18 +162,24 @@ jobs:
cdk destroy "${TEXT_EXTRACTOR_STACK}" \
-c environment=${{ env.ENVIRONMENT_NAME }} \
--force
--exclusively \
--app "npx ts-node bin/docker-lambdas.ts"
# Destroy fr-parser stack
echo "Destroying PR-specific stack: ${FR_PARSER_STACK}"
cdk destroy "${FR_PARSER_STACK}" \
-c environment=${{ env.ENVIRONMENT_NAME }} \
--force
--force \
--exclusively \
--app "npx ts-node bin/docker-lambdas.ts"
# Destroy ecfr-parser stack
echo "Destroying PR-specific stack: ${ECFR_PARSER_STACK}"
cdk destroy "${ECFR_PARSER_STACK}" \
-c environment=${{ env.ENVIRONMENT_NAME }} \
--force
--exclusively \
--app "npx ts-node bin/docker-lambdas.ts"
echo "Cleanup completed for all Docker-based stacks"
popd
Expand Down

0 comments on commit 9e37e10

Please sign in to comment.