Skip to content

Commit

Permalink
for backwards compatibility publish annotations as labels also again
Browse files Browse the repository at this point in the history
  • Loading branch information
joonas-fi committed Aug 28, 2024
1 parent 335cbd8 commit 978158a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/bob/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ func buildAndPushOneDockerImage(dockerImage DockerImageSpec, buildCtx *BuildCont
// for example GitHub packages UI only shows annotations from OCI image index.
args = append(args, annotationsAs("--annotation=index,manifest:")...)

// for backwards compatibility (some consumers use this), publish the annotations also as labels
args = append(args, annotationsAs("--label=")...)

if shouldTagLatest {
args = append(args, "--tag="+tagLatest)
}
Expand Down

0 comments on commit 978158a

Please sign in to comment.