0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/modules/datasource/docker
RahulGautamSingh 49fa1be464
feat(util): getEnv (#35161)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-06 18:37:28 +00:00
..
common.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
common.ts feat(http): Switch to memory cache provider (#33901) 2025-03-24 08:02:47 +00:00
dockerhub-cache.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
dockerhub-cache.ts feat(docker): Reconcile deleted releases in cache (#30491) 2024-08-06 08:00:50 +00:00
ecr.ts chore(deps): update eslint monorepo to v9 (major) (#33573) 2025-02-20 11:31:13 +00:00
google.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
index.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
index.ts feat(util): getEnv (#35161) 2025-05-06 18:37:28 +00:00
readme.md docs(docker): mention required version for Harbor proxy cache feature (#20322) 2023-02-14 06:26:20 +01:00
schema.spec.ts feat(manager/flux): Allow OCI media type used by flux push artifact to enable Release Notes lookup (#32783) 2024-11-28 17:13:54 +00:00
schema.ts fix: improve coverage (#34667) 2025-03-06 17:05:19 +00:00
types.ts feat(docker): use Docker Hub tags api (#23876) 2023-08-15 13:21:17 +00:00

This datasource identifies an image's source repository according to the pre-defined annotation keys of the OCI Image Format Specification.

This datasource looks for the metadata of the latest stable image found on the Docker registry and uses the value of the label org.opencontainers.image.source and org.label-schema.vcs-url as the sourceUrl. Additionally, it uses the value of the label org.opencontainers.image.revision as the gitRef.

The Label Schema is superseded by OCI annotations, use the org.opencontainers.image.source label if possible.

If you maintain a Docker image and want Renovate to find your changelogs, add a org.opencontainers.image.source field to your Dockerfile. The link must point to your GitHub or GitLab repository. Here's an example from our renovate/renovate Dockerfile:

LABEL org.opencontainers.image.source="https://github.com/renovatebot/renovate"

If you use Harbor as a proxy cache for Docker Hub, then you must use Harbor version 2.5.0 or higher.