Skip to content

Commit 978158a

Browse files
committedAug 28, 2024·
for backwards compatibility publish annotations as labels also again
1 parent 335cbd8 commit 978158a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎cmd/bob/build.go

+3
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ func buildAndPushOneDockerImage(dockerImage DockerImageSpec, buildCtx *BuildCont
196196
// for example GitHub packages UI only shows annotations from OCI image index.
197197
args = append(args, annotationsAs("--annotation=index,manifest:")...)
198198

199+
// for backwards compatibility (some consumers use this), publish the annotations also as labels
200+
args = append(args, annotationsAs("--label=")...)
201+
199202
if shouldTagLatest {
200203
args = append(args, "--tag="+tagLatest)
201204
}

0 commit comments

Comments
 (0)
Please sign in to comment.