variable "REGISTRY_USER" { default = "" } variable "IMAGE_NAME" { default = "cv-app" } variable "TAG" { default = "latest" } variable "VERSION" { default = "" } group "default" { targets = ["cv-app"] } target "cv-app" { context = "." platforms = ["linux/amd64", "linux/arm64"] tags = [ notequal("",VERSION) ? "${REGISTRY_USER}/${IMAGE_NAME}:${VERSION}" : "", notequal("",VERSION) ? "${REGISTRY_USER}/${IMAGE_NAME}:latest" : "", notequal("",VERSION) ? "ghcr.io/${REGISTRY_USER}/${IMAGE_NAME}:${VERSION}" : "", notequal("",VERSION) ? "ghcr.io/${REGISTRY_USER}/${IMAGE_NAME}:latest" : "", ] args = { NODE_VERSION = "20" } }