mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-02 17:08:38 +08:00
Update dockerhub_proxy.yml
This commit is contained in:
parent
662d55998b
commit
e1083fd3d8
2
.github/workflows/dockerhub_proxy.yml
vendored
2
.github/workflows/dockerhub_proxy.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
curl -o dockerhub-proxy.md https://raw.githubusercontent.com/Websoft9/doc.websoft9.com/refs/heads/main/docs/reference/_include/dockerhub-proxy.md
|
curl -o dockerhub-proxy.md https://raw.githubusercontent.com/Websoft9/doc.websoft9.com/refs/heads/main/docs/reference/_include/dockerhub-proxy.md
|
||||||
|
|
||||||
# 提取 Markdown 文件中的 URL
|
# 提取 Markdown 文件中的 URL
|
||||||
urls=$(grep -Eo 'https://[a-zA-Z0-9./?=_-]*' dockerhub-proxy.md | tr '\n' ',' | sed 's/,$//')
|
urls=$(grep -Eo 'https://[a-zA-Z0-9./?=_-]*' dockerhub-proxy.md | sed 's/^/"/; s/$/"/' | tr '\n' ',' | sed 's/,$//')
|
||||||
|
|
||||||
# 创建新的 backends 数组
|
# 创建新的 backends 数组
|
||||||
new_backends="const backends = [${urls}]"
|
new_backends="const backends = [${urls}]"
|
||||||
|
Loading…
Reference in New Issue
Block a user