packer-images/library/locals.pkr.hcl
Ben Vincent ff19688dd2 feat: first commit
- add base image for docker and incus
- manage images for almalinux 8.10 and 9.5
- replace all existing docker build repos
2025-01-11 20:50:07 +11:00

11 lines
380 B
HCL

locals {
build_name = "${var.os_name}_${var.os_version_full}_${var.os_image}"
sources = [
var.use_docker ? "source.docker.os" : null,
var.use_incus ? "source.incus.os" : null
]
incus_base_name = "${var.os_name}${var.os_version_major}/${var.os_image}"
incus_output_image = "${local.incus_base_name}/${var.suffix}"
is_master = "${var.git_branch}" == "master"
}