diff options
author | DerRockWolf <50499906+DerRockWolf@users.noreply.github.com> | 2023-11-14 06:46:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 07:46:14 +0100 |
commit | e988978fa199ccb8e130e1eea344666ab5953681 (patch) | |
tree | 73bd287f791334cfce4b6a94a25da97218e75214 /Dockerfile | |
parent | d5deede7a181d9b4cc251bab238c096fef8ce29f (diff) | |
download | syncthing-e988978fa199ccb8e130e1eea344666ab5953681.tar.gz syncthing-e988978fa199ccb8e130e1eea344666ab5953681.zip |
Add `org.opencontainers.image.source` to Dockerfiles (#9211)
### Purpose
The OCI image spec specifies well-defined
[annotations](https://github.com/opencontainers/image-spec/blob/main/annotations.md)
that can be added to images.
Theses annotations can then be used by other tools to gather more
information of an image.
This PR adds the `org.opencontainers.image.source` to allow tools such
as [renovate](https://github.com/renovatebot/renovate) to find the
release notes of a give version.
~~I've only done this change for `Dockerfile`. Should I also add the
label to the other dockerfiles?~~
I've now added the source annotations to all `Dockerfile`s & action
workflows.
### Testing
None, change was done by following the [renovate
documentation](https://docs.renovatebot.com/modules/datasource/docker/).
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile index 02f872de4..0b802aeeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,14 @@ RUN if [ ! -f syncthing-linux-$TARGETARCH ] ; then \ FROM alpine ARG TARGETARCH +LABEL org.opencontainers.image.authors="The Syncthing Project" \ + org.opencontainers.image.url="https://syncthing.net" \ + org.opencontainers.image.documentation="https://docs.syncthing.net" \ + org.opencontainers.image.source="https://github.com/syncthing/syncthing" \ + org.opencontainers.image.vendor="The Syncthing Project" + org.opencontainers.image.licenses="MPL-2.0" + org.opencontainers.image.title="Syncthing" + EXPOSE 8384 22000/tcp 22000/udp 21027/udp VOLUME ["/var/syncthing"] |