Files
gramps-kubernetes/deploy.sh
T
feedc0de 7a2f369eb4
Validate, publish and deploy Gramps Web / validate (push) Successful in 21s
Validate, publish and deploy Gramps Web / ensure-postgresql-image (push) Successful in 8s
Validate, publish and deploy Gramps Web / publish (push) Successful in 19s
Validate, publish and deploy Gramps Web / deploy (push) Failing after 10m32s
Resolve legacy service ownership in chart migration
2026-10-14 21:19:09 +02:00

28 lines
913 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
export HELM_DRIVER=${HELM_DRIVER:-configmap}
registry=${CHART_REGISTRY:-oci://registry.brunner.ninja/feedc0de/charts}
version=${CHART_VERSION:?Set CHART_VERSION to the published chart version}
namespace=${NAMESPACE:-gramps}
release=${RELEASE:-gramps}
project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
helm_args=(
upgrade --install "${release}" "${registry}/gramps-web"
--version "${version}"
--namespace "${namespace}"
--values "${project_dir}/values-arschrock.yaml"
--take-ownership --force-conflicts --wait --timeout 20m
)
# Never auto-uninstall resources during the initial ownership transfer. Once
# the parent release exists, normal upgrades may safely roll back to it.
if helm status "${release}" --namespace "${namespace}" 2>/dev/null \
| grep -q '^STATUS: deployed$'; then
helm_args+=(--rollback-on-failure)
fi
helm "${helm_args[@]}"