Skip to content

[enhancement]: Add OCI Annotations while building #22114

@escherstair

Description

@escherstair

Task name

Docker@2

Describe your feature request here

Similar to other issues posted years ago.
OCI annotations are quite popular and useful for several reasons.
Based on docker official doc here

Annotations provide descriptive metadata for images. Use annotations to record arbitrary information and attach it to your image, which helps consumers and tools understand the origin, contents, and how to use the image.

Annotations are similar to, and in some sense overlap with, labels. Both serve the same purpose: to attach metadata to a resource. As a general principle, you can think of the difference between annotations and labels as follows:

Annotations describe OCI image components, such as [manifests](https://github.com/opencontainers/image-spec/blob/main/manifest.md), [indexes](https://github.com/opencontainers/image-spec/blob/main/image-index.md), and [descriptors](https://github.com/opencontainers/image-spec/blob/main/descriptor.md).
Labels describe Docker resources, such as images, containers, networks, and volumes.

I'd like having the possiiblity to add annotations specifying a new parameter to Docker@2 task (i.e. annotations: ...)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions