Files
RSSHub/lib/v2/dockerhub/radar.js
Outvi V 41a06a22bb feat(route): add dockerhub image new tag (#8965)
* feat: /dockerhub/tags/:owner/:image

fix #6916

* fix: update the doc link of /dockerhub/build

* docs(en): /dockerhub/tag/:owner/:image

* docs: fix typo

* fix(dockerhub/tags): use parseDate()

* docs: link docs to h2 instead of h3

* chore: move /dockerhub/build to v2

* docs: put warning inside <Route>

* fix(dockerhub): use docker.com/hub as the radar path

* fix(dockerhub/tag): add :limits?

* feat(dockerhub): polish the GUID

* fix(dockerhub/tag): stricter argument checks

* fix(dockerhub/tag): handle NaN per Deepscan CI
2022-02-03 00:09:01 +08:00

20 lines
806 B
JavaScript

module.exports = {
'docker.com': {
_name: 'Docker Hub',
hub: [
{
title: '镜像有新 Build',
docs: 'https://docs.rsshub.app/program-update.html#docker-hub',
source: ['/r/:owner/:image', '/r/:owner/:image/tags', '/_/:image'],
target: (params) => `/dockerhub/build/${params.owner ? params.owner : 'library'}/${params.image}`,
},
{
title: '镜像有新 Tag',
docs: 'https://docs.rsshub.app/program-update.html#docker-hub',
source: ['/r/:owner/:image', '/r/:owner/:image/tags', '/_/:image'],
target: (params) => `/dockerhub/tag/${params.owner ? params.owner : 'library'}/${params.image}`,
},
],
},
};