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 # 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" # 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 - name: Deploy to cloudflare
uses: cloudflare/wrangler-action@v3 uses: cloudflare/wrangler-action@v3
with: with:
apiToken: ${{ secrets.EDIT_CLOUDFLARE_WORKERS }} apiToken: ${{ secrets.EDIT_CLOUDFLARE_WORKERS }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} 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 - name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4