ci: fix static binary release

This commit is contained in:
Kévin Dunglas
2023-12-20 18:27:10 +01:00
parent f6873efee4
commit 2eabec8c92
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -120,8 +120,8 @@ target "static-builder" {
tags = distinct(flatten([
LATEST ? "${IMAGE_NAME}:static-builder" : "",
SHA == "" ? "" : "${IMAGE_NAME}:static-builder-sha-${substr(SHA, 0, 7)}",
[for v in semver(VERSION) : "${IMAGE_NAME}:static-builder-${v}"]
]))
[for v in semver(VERSION) : v == "latest" ? "${IMAGE_NAME}:static-builder": "${IMAGE_NAME}:static-builder-${v}"]
]))
labels = {
"org.opencontainers.image.created" = "${timestamp()}"
"org.opencontainers.image.version" = VERSION