Replies: 2 comments 1 reply
-
Here's an example of where this can come of use: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here's how I set mine if you want to use it as a starting point. I use sbt-git to get the commit hash. dockerLabels ++= {
import com.github.sbt.git.GitPlugin.autoImport._
val source = scmInfo.value.map(info => "org.opencontainers.image.source" -> info.browseUrl.toString)
val revision = git.gitHeadCommit.value.map("org.opencontainers.image.revision" -> _)
Map(
"org.opencontainers.image.description" -> packageSummary.value,
"org.opencontainers.image.version" -> version.value,
"org.opencontainers.image.vendor" -> maintainer.value,
) ++ source ++ revision
} There are other keys like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There are a few predefined/standardized docker image labels as part of the OCI specifications, as listed here:
How about
sbt-native-packager
starts setting a few (or most) of those?Beta Was this translation helpful? Give feedback.
All reactions