Continuous deployment is handled through Cloudflare Pages.
The deployment process is generally:
- A PR is approved and merged to
main
- The Cloudflare app picks up the PR and runs
npm run build
- Assuming no errors, the built
/packages/viewer/dist
directory is deployed to the Cloudflare pages URLtopology.pages.dev
Cloudflare Pages is not currently configured to report builds or build failures directly (see this Cloudflare community discussion). As such, we only get deploy failure notifications through Github action failure notifications.
Add a semver tag to trigger the Publish Images CI step, which publishes ghcr.io/pi-base/compile
. You can either
- create a release directly in the Github UI
- run
git tag v#.#.#
andgit push --tags
Changes to the data repo invoke the released compile action,
and upload the compiled bundles to the pi-base-bundles
S3 bucket.