feat(radar): add hub.docker.com (#3270)

This commit is contained in:
Gimo 2019-10-18 13:09:58 +09:00 committed by DIYgod
parent 380d9f18f2
commit 33599a7aca
2 changed files with 18 additions and 1 deletions

View File

@ -557,4 +557,15 @@
},
],
},
'docker.com': {
_name: 'Docker',
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}`,
},
],
},
});

View File

@ -54,7 +54,13 @@ pageClass: routes
### 镜像有新 Build
<Route author="HenryQW" example="/dockerhub/build/wangqiru/ttrss" path="/dockerhub/build/:owner/:image/:tag?" :paramsDesc="['镜像作者', '镜像名称', '镜像标签,默认 latest']"/>
<Route author="HenryQW" example="/dockerhub/build/wangqiru/ttrss" path="/dockerhub/build/:owner/:image/:tag?" :paramsDesc="['镜像作者', '镜像名称', '镜像标签,默认 latest']" radar="1"/>
::: warning 注意
官方镜像的 owner 填写 library, 如: https://rsshub.app/dockerhub/build/library/mysql
:::
## F-Droid