Skip to content

Commit 00d70ef

Browse files
sxdfcanovai
authored andcommitted
chore: add support for beta versions
Closes #190 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
1 parent 44cb72b commit 00d70ef

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

docker-bake.hcl

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ target "default" {
3131
"14.18",
3232
"15.13",
3333
"16.9",
34-
"17.5"
34+
"17.5",
35+
"18~beta1"
3536
]
3637
base = [
3738
// renovate: datasource=docker versioning=loose
@@ -45,11 +46,11 @@ target "default" {
4546
"linux/arm64"
4647
]
4748
dockerfile = "Dockerfile"
48-
name = "postgresql-${index(split(".",pgVersion),0)}-${tgt}-${distroVersion(base)}"
49+
name = "postgresql-${index(split(".",cleanVersion(pgVersion)),0)}-${tgt}-${distroVersion(base)}"
4950
tags = [
50-
"${fullname}:${index(split(".",pgVersion),0)}-${tgt}-${distroVersion(base)}",
51-
"${fullname}:${pgVersion}-${tgt}-${distroVersion(base)}",
52-
"${fullname}:${pgVersion}-${formatdate("YYYYMMDDhhmm", now)}-${tgt}-${distroVersion(base)}"
51+
"${fullname}:${index(split(".",cleanVersion(pgVersion)),0)}-${tgt}-${distroVersion(base)}",
52+
"${fullname}:${cleanVersion(pgVersion)}-${tgt}-${distroVersion(base)}",
53+
"${fullname}:${cleanVersion(pgVersion)}-${formatdate("YYYYMMDDhhmm", now)}-${tgt}-${distroVersion(base)}"
5354
]
5455
context = "."
5556
target = "${tgt}"
@@ -107,3 +108,8 @@ function digest {
107108
params = [ imageNameWithSha ]
108109
result = index(split("@", imageNameWithSha), 1)
109110
}
111+
112+
function cleanVersion {
113+
params = [ version ]
114+
result = replace(version, "~", "")
115+
}

0 commit comments

Comments
 (0)