Skip to content

ci: purge the Bunny CDN zone on every deploy - #58

Merged
pathscale merged 1 commit into
masterfrom
fix/bunny-purge
Sep 29, 2026
Merged

pathscale merged 1 commit into
masterfrom
fix/bunny-purge

Conversation

@pathscale

Copy link
Copy Markdown
Owner

Every deploy purges the Bunny pull zone with one POST to https://api.bunny.net/pullzone/$ZONE_ID/purgeCache, the same step across the fleet.

Fixes pathscale.com, web3.trading and js.software, whose purge read BUNNYCDN_DEV_ZONE_ID (pathscale.com and web3.trading do not have it) and got "The request is invalid.", so the edge kept serving the old index.html. Tested locally against the pathscale.com zone: HTTP 204, edge refetched.

One POST to the pull-zone purge endpoint, reading BUNNYCDN_ZONE_ID (or
BUNNYCDN_DEV_ZONE_ID where that is the secret the repo has). Some
pipelines read a secret the repo does not have, so Bunny answered
"The request is invalid." and nothing was purged.
@pathscale
pathscale merged commit e2015d5 into master Sep 29, 2026
1 check passed
@pathscale
pathscale deleted the fix/bunny-purge branch September 29, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant