Remove privileged image

This commit is contained in:
Shiming Zhang 2024-10-09 11:29:14 +08:00
parent d3d4438203
commit 465ddd6f62
3 changed files with 0 additions and 46 deletions

View File

@ -1,27 +0,0 @@
name: Update privileged list
on:
push:
paths:
- privileged.txt
workflow_dispatch:
jobs:
update-privileged-list:
if: github.repository == 'DaoCloud/public-image-mirror'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Start Proxy
run: |
wget https://github.com/wzshiming/bridge/releases/download/v0.9.0/bridge_linux_amd64 -O /usr/local/bin/bridge && chmod +x /usr/local/bin/bridge
nohup /usr/local/bin/bridge -b :8080 -p - ${{ secrets.PROTOCOL }} 2>/dev/null &
- name: Check Proxy
run: |
curl -v http://127.0.0.1:8080 || exit 1
curl -f --proxy socks5h://127.0.0.1:8080 -v http://m.daocloud.io/v2/ || exit 1
- name: Update list
run: |
curl -v -f --proxy socks5h://127.0.0.1:8080 -X PUT http://crmirror:8080/internal/api/privileged -T ./privileged.txt

View File

@ -7,7 +7,6 @@ on:
- 'domain.txt'
- 'mirror.txt'
- 'allows.txt'
- 'privileged.txt'
permissions:
issues: write
@ -61,23 +60,6 @@ jobs:
exit 1
}
- name: Verify privileged.txt sort
run: |
./hack/verify-image-match.sh privileged.txt || {
echo "Please run './hack/fmt-image-match.sh privileged.txt'"
gh pr comment "${{ github.event.pull_request.number }}" --body '请运行 `./hack/fmt-image-match.sh privileged.txt` 对内容进行排序'
exit 1
}
- name: Verify privileged.txt in allows.txt
run: |
cat privileged.txt >>allows.txt
./hack/fmt-image-match.sh allows.txt
git --no-pager diff --exit-code || {
gh pr comment "${{ github.event.pull_request.number }}" --body '部分 privileged.txt 镜像未加到 allows.txt. 请运行 `cat privileged.txt >>allows.txt; ./hack/fmt-image-match.sh allows.txt`'
exit 1
}
- name: Verify mirror.txt in allows.txt
run: |
cat mirror.txt >>allows.txt

View File

@ -1 +0,0 @@