Archived
12 lines
513 B
Bash
Executable File
12 lines
513 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
|
|
version=${ARGOCD_CHART_VERSION:-10.10.5}
|
|
output=${1:?Usage: render.sh OUTPUT_FILE}
|
|
chart=$(mktemp)
|
|
trap 'rm -f "${chart}"' EXIT
|
|
curl --fail --silent --show-error --location --output "${chart}" \
|
|
"https://github.com/argoproj/argo-helm/releases/download/argo-cd-${version}/argo-cd-${version}.tgz"
|
|
helm template argocd "${chart}" --namespace argocd \
|
|
--values "${project_dir}/argocd-values.yaml" > "${output}"
|