Files
feedc0de 9933f9904a
Validate, publish and deploy Gramps Web / validate (push) Failing after 29m16s
Validate, publish and deploy Gramps Web / publish (push) Skipped
Validate, publish and deploy Gramps Web / deploy (push) Skipped
Introduce helm chart and CI and CD
2026-09-06 11:26:19 +02:00

18 lines
541 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
release=${RELEASE:-gramps-web}
namespace=${NAMESPACE:-gramps-web}
values=${VALUES_FILE:-"${project_dir}/values.yaml"}
dependencies=("${project_dir}"/charts/*.tgz)
if (( ${#dependencies[@]} < 2 )); then
helm dependency build --skip-refresh "${project_dir}"
fi
helm upgrade --install "${release}" "${project_dir}" \
--namespace "${namespace}" --create-namespace \
--values "${values}" \
--rollback-on-failure --wait --timeout 15m