Files
terraform-hcloud-talos/_packer/create.sh
Marcel Richter e1beb5bcbd docs(talos): add README for image customization
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>
2024-03-26 16:06:17 +01:00

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 .