Stop app deployment when guarded OpenTofu apply fails

This commit is contained in:
juvenal.diaz 2026-11-02 21:20:42 -06:00
parent 6ada60e99e
commit 0859683c40
1 changed files with 2 additions and 2 deletions

View File

@ -8167,9 +8167,9 @@ apps() {
echo "Deploying homelab applications..."
if ((${#app_targets[@]})); then
run_tofu_stack "bootstrap/apps" "${app_targets[@]}"
run_tofu_stack "bootstrap/apps" "${app_targets[@]}" || return 1
else
run_tofu_stack "bootstrap/apps"
run_tofu_stack "bootstrap/apps" || return 1
fi
if [[ "${app_selector}" == "all" || "${deploy_registry}" == "true" || "${deploy_supply_chain}" == "true" ]]; then