mirror of
https://github.com/Luzifer/hetzner-alpine-k8s.git
synced 2024-11-08 14:20:01 +00:00
Knut Ahlers
9c14dc02e5
in order to be able to modify the code Signed-off-by: Knut Ahlers <knut@ahlers.me>
17 lines
No EOL
404 B
Bash
17 lines
No EOL
404 B
Bash
#!/bin/sh
|
|
|
|
export PACKER_CACHE_DIR=/cache/.cache
|
|
export PACKER_CONFIG_DIR=/cache/.config
|
|
export PACKER_ANSIBLE_DIR=/cache/.ansible
|
|
|
|
# Combine all the configuration paths passed as arguments.
|
|
jq -s 'reduce .[] as $item ({}; . * $item)' "$@" > config.json
|
|
|
|
echo "Combined configuration:"
|
|
cat config.json
|
|
|
|
|
|
echo "Starting Packer Build"
|
|
/usr/bin/packer build \
|
|
-var-file="config.json" \
|
|
. |