mirror of
https://github.com/immich-app/yucca.git
synced 2026-09-30 13:33:00 +08:00
12 lines
506 B
Bash
Executable File
12 lines
506 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#MISE description="Tear down a docs preview stage (TF_VAR_stage=pr-<n>); the shared Pages project is kept"
|
|
#MISE dir="{{config_root}}/../.."
|
|
set -euo pipefail
|
|
|
|
export ENVIRONMENT="${ENVIRONMENT:-dev}"
|
|
export OP_ENV_FILE=tf/pages/.env
|
|
: "${TF_VAR_stage:?set TF_VAR_stage=pr-<n> to name the preview to tear down}"
|
|
export TF_VAR_stage
|
|
|
|
tf/op-run.sh terragrunt run --all destroy --non-interactive --queue-exclude-external --working-dir tf/pages/docs/site -- -refresh=false -lock-timeout=5m
|