Update dockerhub_proxy.yml

This commit is contained in:
赵璟 2024-10-22 16:29:01 +08:00 committed by GitHub
parent a30a56361a
commit ac7356f1a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,12 +18,16 @@ jobs:
# curl -o https://raw.githubusercontent.com/Websoft9/doc.websoft9.com/refs/heads/main/docs/reference/_include/dockerhub-proxy.md
# echo "Insert proxy lists to cloudflare.js"
- name: Set compatibility date
id: set-date
run: echo "COMPATIBILITY_DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV
- name: Deploy to cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.EDIT_CLOUDFLARE_WORKERS }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy docker/cloudflare.js --name test --compatibility-date $(date +%Y-%m-%d)
command: deploy docker/cloudflare.js --name test --compatibility-date ${{ env.COMPATIBILITY_DATE }}
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4