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

Add OCI source annotation to link back to source repo #701

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ramblurr
Copy link

This commit adds the org.opencontainers.image.source label to the built container images.

This label is helpful for tools to be able to link back from the container image to the source repo.

For example, for those that use Renovate to help auto update dependencies, this will result in the latest releases release notes/changelog being included in the PR which is very handy!

This commit adds the `org.opencontainers.image.source` label to the
built container images.

This label is helpful for tools to be able to link back from the
container image to the source repo.

For example, for those that use Renovate to help auto update
dependencies, this will result in the latest releases release
notes/changelog being included in the PR which is very handy!
@@ -127,3 +127,5 @@ COPY --from=ublock-build /etc/linkding/uBlock0.chromium uBlock0.chromium/
RUN mkdir -p chromium-profile && chown -R www-data:www-data chromium-profile
# enable snapshot support
ENV LD_ENABLE_SNAPSHOTS=True

LABEL org.opencontainers.image.source="https://github.com/sissbruecker/linkding"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Since the Dockerfiles contain multiple build stages that are used to generate separate images (linkding and linkding-plus), I assume that the LABEL either needs to be set for both, or on the linkding build stage, which is the basis for linkding-plus.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you're right. I just assumed the last stage was the published one. I'll edit my commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants