Skip to content

Commit

Permalink
Update dockerhub_proxy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojing1987 authored Oct 22, 2024
1 parent 662d559 commit e1083fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# 提取 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 数组
new_backends="const backends = [${urls}]"
Expand Down

0 comments on commit e1083fd

Please sign in to comment.