macbre/index-digest

Label the Docker image with git repository

macbre opened this issue · 0 comments

https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys

Example

https://github.com/ng-cdi/onos-docker/blob/2bad33835c1ca872b1d113b9961be0df1493b0bb/.github/workflows/docker-manual.yml#L44-L47

            org.opencontainers.image.title=${{ github.event.repository.name }}-environment
            org.opencontainers.image.url=${{ github.event.repository.html_url }}
            org.opencontainers.image.source=${{ github.event.repository.html_url }}
            org.opencontainers.image.revision=${{ github.sha }}