Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement conventional labels on top of existing label infrastructure #96

Closed
Tracked by #11
baronfel opened this issue Aug 9, 2022 · 0 comments · Fixed by #307
Closed
Tracked by #11

Implement conventional labels on top of existing label infrastructure #96

baronfel opened this issue Aug 9, 2022 · 0 comments · Fixed by #307
Milestone

Comments

@baronfel
Copy link
Member

baronfel commented Aug 9, 2022

Labels

There are some well-known labels that we should consider setting by default:

Annotation Key Derived from
org.opencontainers.image.created $([System.DateTime]::UtcNow.ToString("o"))
org.opencontainers.image.description $(Description)
org.opencontainers.image.authors $(Authors)
org.opencontainers.image.url $(PackageProjectUrl) if present.
org.opencontainers.image.documentation Since $(PackageLicenseUrl) is deprecated, we may just have to default to $(RepositoryUrl). Users should be able to override this easily though.
org.opencontainers.image.version $(Version) if present. Note that there's not really a consistent place to hook into where we can be assured of a version being set, so we'll want to be sometime directly before Build, but as late as possible otherwise.
org.opencontainers.image.vendor There's no $(PackageOwners) or $(Owners) to bootstrap off of, but maybe we should make one?
org.opencontainers.image.licenses $(PackageLicenseExpression)
org.opencontainers.image.title $(Title)
org.opencontainers.image.base.digest The resolved digest of $(ContainerBaseImage). We don't calculate this yet so can't do it.
org.opencontainers.image.base.name $(ContainerBaseImage)
org.opencontainers.image.source $(PrivateRepositoryUrl) if present and $(PublishRepositoryUrl) is true.
org.opencontainers.image.revision $(RepositoryCommit) if present and $(PublishRepositoryUrl) is true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant