2024-09-03 16:24:54 +03:00
|
|
|
group "default" {
|
|
|
|
targets = ["web"]
|
|
|
|
}
|
|
|
|
|
|
|
|
variable DOCKER_BUILD {}
|
|
|
|
variable DOCKER_COMMIT {}
|
|
|
|
variable DOCKER_VERSION {}
|
|
|
|
variable DOCKER_TARGET {}
|
|
|
|
variable DOCKER_TAG {}
|
|
|
|
|
|
|
|
target "web" {
|
|
|
|
context = "."
|
|
|
|
dockerfile = "Dockerfile"
|
|
|
|
target = "${DOCKER_TARGET}"
|
|
|
|
tags = ["${DOCKER_TAG}"]
|
|
|
|
platforms = ["linux/amd64"]
|
|
|
|
args = {
|
|
|
|
DOCKER_COMMIT = "${DOCKER_COMMIT}"
|
|
|
|
DOCKER_VERSION = "${DOCKER_VERSION}"
|
|
|
|
DOCKER_BUILD = "${DOCKER_BUILD}"
|
2024-10-18 18:39:49 +03:00
|
|
|
DOCKER_TARGET = "${DOCKER_TARGET}"
|
2024-09-03 16:24:54 +03:00
|
|
|
}
|
|
|
|
pull = true
|
|
|
|
|
|
|
|
output = [
|
|
|
|
"type=docker",
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|