hetzner-alpine-k8s/alpine-on-hetzner/entrypoint.sh
Knut Ahlers 9c14dc02e5
Move git module to included files
in order to be able to modify the code

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-05-06 12:56:29 +02:00

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" \
.