Stop app deployment when guarded OpenTofu apply fails
This commit is contained in:
parent
6ada60e99e
commit
0859683c40
|
|
@ -8167,9 +8167,9 @@ apps() {
|
||||||
echo "Deploying homelab applications..."
|
echo "Deploying homelab applications..."
|
||||||
|
|
||||||
if ((${#app_targets[@]})); then
|
if ((${#app_targets[@]})); then
|
||||||
run_tofu_stack "bootstrap/apps" "${app_targets[@]}"
|
run_tofu_stack "bootstrap/apps" "${app_targets[@]}" || return 1
|
||||||
else
|
else
|
||||||
run_tofu_stack "bootstrap/apps"
|
run_tofu_stack "bootstrap/apps" || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${app_selector}" == "all" || "${deploy_registry}" == "true" || "${deploy_supply_chain}" == "true" ]]; then
|
if [[ "${app_selector}" == "all" || "${deploy_registry}" == "true" || "${deploy_supply_chain}" == "true" ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue