Skip to content

Commit 5f395b8

Browse files
authored
feat: add pgmajor and os labels and annotations (#43)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
1 parent 836fcef commit 5f395b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-bake.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ target "default" {
7777
"index,manifest:org.opencontainers.image.licenses=Apache-2.0",
7878
"index,manifest:org.opencontainers.image.base.name=scratch",
7979
"index,manifest:io.cloudnativepg.image.base.name=${getBaseImage(distro, pgVersion)}",
80+
"index,manifest:io.cloudnativepg.image.base.pgmajor=${pgVersion}",
81+
"index,manifest:io.cloudnativepg.image.base.os=${distro}",
8082
]
8183
labels = {
8284
"org.opencontainers.image.created" = "${now}",
@@ -92,6 +94,8 @@ target "default" {
9294
"org.opencontainers.image.licenses" = "Apache-2.0",
9395
"org.opencontainers.image.base.name" = "scratch",
9496
"io.cloudnativepg.image.base.name" = "${getBaseImage(distro, pgVersion)}",
97+
"io.cloudnativepg.image.base.pgmajor" = "${pgVersion}",
98+
"io.cloudnativepg.image.base.os" = "${distro}",
9599
}
96100
}
97101

0 commit comments

Comments
 (0)