12 lines
321 B
Bash
Executable File
12 lines
321 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT=$(git rev-parse --show-toplevel)
|
|
RENDERED=${ROOT}/rendered
|
|
TEMPLATES=${ROOT}/templates
|
|
|
|
${ROOT}/tools/merge ./nodes > ${RENDERED}/nodes.json
|
|
|
|
gomplate --input-dir ${TEMPLATES} --output-dir ${RENDERED} \
|
|
-d nodes=file://${RENDERED}/nodes.json \
|
|
-d config=${ROOT}/config.yaml \
|