Merge pull request #211 from cloud-neutral-workshop/feature-cloud-bootstrap-destroy-standardization-14661747828421324646

Standardize bootstrap destroy modules and pipeline
This commit is contained in:
cloudneutral 2026-01-02 10:50:46 +08:00 committed by GitHub
commit eaf3d0d8a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 33 additions and 1 deletions

View File

@ -84,7 +84,15 @@ jobs:
- name: Force Destroy Bootstrap Resources
if: env.DEPLOY_ACTION == 'destroy'
run: |
./scripts/aws-bootstrap-force-destroy.sh
CLOUD_ROOT=$(dirname ${{ env.TG_ROOT }})
DESTROY_SCRIPT="${CLOUD_ROOT}/modules/bootstrap-destroy/destroy.sh"
if [ -f "$DESTROY_SCRIPT" ]; then
chmod +x "$DESTROY_SCRIPT"
"$DESTROY_SCRIPT"
else
echo "No destroy script found at $DESTROY_SCRIPT"
exit 1
fi
- name: Terragrunt Plan
if: env.DEPLOY_ACTION == 'plan'

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
# This script is a placeholder for Alibaba Cloud bootstrap resource cleanup
echo "Not implemented yet for Ali Cloud"
exit 0

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
# This script is a placeholder for Azure Cloud bootstrap resource cleanup
echo "Not implemented yet for Azure Cloud"
exit 0

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
# This script is a placeholder for GCP Cloud bootstrap resource cleanup
echo "Not implemented yet for GCP Cloud"
exit 0

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
# This script is a placeholder for Vultr VPS bootstrap resource cleanup
echo "Not implemented yet for Vultr VPS"
exit 0