variable "REG" {
	default = "registry.serguzim.me"
}
variable "REPO" {
	default = "hass-io/snapcast"
}
variable "TAG" {
	default = "latest"
}

group "default" {
	targets = ["production"]
}

target "production" {
	dockerfile = "./Dockerfile"
	output = ["type=docker"]
	tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"]
	args = {
		BUILD_FROM = "ghcr.io/home-assistant/amd64-base"
	}
}