Skip to content

Commit 2c6e6fd

Browse files
committed
add gnu-static target
1 parent e01f595 commit 2c6e6fd

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

docker-bake.hcl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,26 @@ target "static-builder" {
143143
}
144144
secret = ["id=github-token,env=GITHUB_TOKEN"]
145145
}
146+
147+
target "gnu-static" {
148+
dockerfile = "gnu-static.Dockerfile"
149+
context = "./"
150+
platforms = [
151+
"linux/amd64",
152+
"linux/arm64"
153+
]
154+
tags = distinct(flatten([
155+
LATEST ? "${IMAGE_NAME}:gnu-static" : "",
156+
SHA == "" || VERSION != "dev" ? "" : "${IMAGE_NAME}:gnu-static-sha-${substr(SHA, 0, 7)}",
157+
VERSION == "dev" ? [] : [for v in semver(VERSION) : "${IMAGE_NAME}:gnu-static-${v}"]
158+
]))
159+
labels = {
160+
"org.opencontainers.image.created" = "${timestamp()}"
161+
"org.opencontainers.image.version" = VERSION
162+
"org.opencontainers.image.revision" = SHA
163+
}
164+
args = {
165+
FRANKENPHP_VERSION = VERSION
166+
}
167+
secret = ["id=github-token,env=GITHUB_TOKEN"]
168+
}

0 commit comments

Comments
 (0)