mirror of
https://github.com/outbackdingo/terraform-hcloud-talos.git
synced 2026-01-27 10:20:30 +00:00
Created `_packer/schematic.yaml` for defining image customization and `_packer/README.md` to guide on adding extensions to Talos images using the image factory. Signed-off-by: Marcel Richter <mail@mrclrchtr.de>
15 lines
383 B
Bash
15 lines
383 B
Bash
#!/bin/bash
|
|
set -e -u -o pipefail
|
|
|
|
command -v packer >/dev/null 2>&1 || {
|
|
echo "packer is not installed. Install it with 'brew install packer'."
|
|
exit 1
|
|
}
|
|
|
|
if [[ -z "${HCLOUD_TOKEN:-}" ]]; then
|
|
read -r -p "Enter your HCLOUD_TOKEN: " hcloud_token
|
|
export HCLOUD_TOKEN=$hcloud_token
|
|
fi
|
|
echo "Running packer build for talos-hcloud.pkr.hcl"
|
|
packer init . && packer build .
|