variable "REGISTRY" { default = "git.nixc.us/colin" } variable "TAG" { default = "latest" } group "default" { targets = ["staging", "production"] } target "staging" { context = "." dockerfile = "Dockerfile" tags = ["${REGISTRY}/n8n:staging"] platforms = ["linux/amd64"] cache-from = ["type=registry,ref=${REGISTRY}/n8n:cache"] cache-to = ["type=registry,ref=${REGISTRY}/n8n:cache"] args = { NODE_ENV = "production" } } target "production" { context = "." dockerfile = "Dockerfile" tags = ["${REGISTRY}/n8n:production"] platforms = ["linux/amd64"] cache-from = ["type=registry,ref=${REGISTRY}/n8n:cache"] cache-to = ["type=registry,ref=${REGISTRY}/n8n:cache"] args = { NODE_ENV = "production" } }