34 lines
577 B
HCL
34 lines
577 B
HCL
variable "TAG_BASE" {}
|
|
variable "RELEASE_VERSION" {}
|
|
|
|
group "default" {
|
|
targets = ["automation"]
|
|
}
|
|
|
|
target "docker-metadata-action" {}
|
|
|
|
# TODO: Auto include this from the workflow
|
|
target "common" {
|
|
cache-from = [
|
|
{
|
|
type = "gha"
|
|
}
|
|
]
|
|
cache-to = [
|
|
{
|
|
type = "gha"
|
|
mode = "max"
|
|
}
|
|
]
|
|
args = {
|
|
RELEASE_VERSION = "${RELEASE_VERSION}"
|
|
}
|
|
}
|
|
|
|
target "automation" {
|
|
inherits = ["docker-metadata-action", "common"]
|
|
context = "./"
|
|
dockerfile = "Dockerfile"
|
|
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
|
|
}
|