fix(ci): actually purge BunnyCDN cache in purge_cdn_cache.sh #78
Loading…
Reference in a new issue
No description provided.
Delete branch "pr/purge-cdn-cache-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
While cleaning this up I noticed the script defined
purge_cdn_cache()but never called it. Every CI run only declared the helper and exited cleanly without issuing a single curl. The PACKAGES freshness on cran.devxy.io / cran.rpkgs.com has been carried entirely by R'sCache-Control: no-cacheheader on the index files.Fixes in one shot:
api_key,arch,os_id,domain…) are now consumed inline and a curl POST is issued per (domain × resource).set -x— leaked theAccessKey:header into job logs.curl -G --data-urlencode "url=…" --data "async=false" https://api.bunny.net/purgedoes the same with no Python. The workflow purge steps can later switch fromalpine:3.23 + apk add bash curlto a slimmer curl-only image.src/contrib/Meta/archive.rdsto the purged resource list. It's rewritten on everyprocess_cran_updatesrun (see README) and was being served stale.Risks