mirror of
https://github.com/klutchell/unbound-docker.git
synced 2026-10-19 08:03:02 +00:00
29 lines
700 B
HCL
29 lines
700 B
HCL
variable "GITHUB_REF_NAME" {
|
|
default = "dev"
|
|
}
|
|
|
|
variable "GITHUB_REPOSITORY" {
|
|
default = "klutchell/unbound-docker"
|
|
}
|
|
|
|
target "default" {
|
|
context = "./"
|
|
dockerfile = "Dockerfile"
|
|
platforms = [
|
|
"linux/amd64",
|
|
"linux/arm/v7",
|
|
"linux/arm/v6",
|
|
"linux/arm64"
|
|
]
|
|
cache-from = [
|
|
"ghcr.io/klutchell/unbound:latest",
|
|
"docker.io/klutchell/unbound:latest",
|
|
"ghcr.io/klutchell/unbound:main",
|
|
"docker.io/klutchell/unbound:main",
|
|
"type=registry,ref=ghcr.io/klutchell/unbound:buildkit-cache-${base64encode(GITHUB_REF_NAME)},mode=max"
|
|
]
|
|
cache-to = [
|
|
"type=registry,ref=ghcr.io/klutchell/unbound:buildkit-cache-${base64encode(GITHUB_REF_NAME)},mode=max"
|
|
]
|
|
}
|