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
528 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
output=${1:-"${project_dir}/.rendered/gramps-web.yaml"}
values=${2:-"${project_dir}/values.yaml"}
mkdir -p "$(dirname -- "${output}")"
dependencies=("${project_dir}"/charts/*.tgz)
if (( ${#dependencies[@]} < 2 )); then
helm dependency build --skip-refresh "${project_dir}" >/dev/null
fi
helm template gramps-web "${project_dir}" \
--namespace gramps-web \
--values "${values}" > "${output}"
echo "Rendered ${output}"