feat: add immediate rollout flag to container deployments (#7)

- Enable --containers-rollout=immediate in package.json deploy script
- Apply same flag to GitHub Actions deployment workflow
This commit is contained in:
DIYgod 2026-01-21 21:22:44 +08:00 committed by GitHub
parent 9408bf6598
commit a278e25bd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -113,6 +113,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --containers-rollout=immediate
- name: Restore placeholder in wrangler.toml before commit
if: steps.check-update.outputs.needed == 'true'

View File

@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"build": "esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --platform=neutral --external:@cloudflare/containers --external:@cloudflare/workers-types",
"deploy": "pnpm run build && wrangler deploy",
"deploy": "pnpm run build && wrangler deploy --containers-rollout=immediate",
"dev": "wrangler dev"
},
"devDependencies": {