Skip to content

OCI image annotations option #1217

Open
@candrews

Description

Description

A new configuration option to add OCI image annotations would be very useful, ideally defaulted to enabled.

These annotations are useful for people to use manually and for use by tools. For example, Snyk uses them in its UI and Renovate uses them to find release notes.

These annotations would be set:

  • org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY
  • org.opencontainers.image.revision=$GITHUB_SHA
  • org.opencontainers.image.ref.name=$GITHUB_REF
  • if $GITHUB_REF_TYPE=tag then org.opencontainers.image.version=$GITHUB_REF_NAME
  • org.opencontainers.image.url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY
  • org.opencontainers.image.created=$(date -Iseconds)

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions