Skip to content

Notification template to extract .Entry.Manifest.Labels #969

Answered by crazy-max
NLZ asked this question in Q&A
Discussion options

You must be logged in to vote

It's using go templates and Labels is a map so you can use {{index .Entry.Manifest.Labels "org.opencontainers.image.version"}}

More info https://pkg.go.dev/text/template#hdr-Functions

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NLZ
Comment options

@crazy-max
Comment options

Answer selected by NLZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants