CI: sbtc-bridge-web

Builds and deploys to staging.sbtc.world / sbtc.world on push/merge to main / staging GitHub branches.

GitHub

Setup branch main for production. Setup up merge rules;

--> merge to main from other branches

One approval needed to merge.

Cloudflare recognises main as the production branch and merges are automatically built to;

  • sbtc.world

Authorisation is possibly needed to access build branches

Bridge Web App Continuous Integration

Leverage Cloudflare / GitHub integration (requires Cloudflare to have control over the sbtc.world domain). Main goals;

  1. Cloudflare hooks to build any development branch on push

    1. Builds to <commit-hash>.sbtc-bridge.pages.dev

  2. Cloudflare production build - https://sbtc.world

GCP Changes

Name Servers

The name servers for sbtc.world domain have been transferred from GCP to Cloudflare

  1. GCP --> Cloud Domains --> sbtc.world

    1. Unlock domain

    2. Switch DNSSec off

    3. In DNS Details enter the Cloudflare Name Servers (see below)

      1. annalise.ns.cloudflare.com

      2. ganz.ns.cloudflare.com

Cloudflare Changes

CF Pages had already been configured by @fjs to build on git push/merge to production and non-production branches.

  1. Add new web site sbtc.world

  2. Nameservers displayed needed for GCP above.

Setup DNS for sbtc.world and staging.sbtc-bridge.pages.dev;

Staging

UI tag added to local and staging sites to make them easily distinguishable from production;

Bridge API

See API description.

References

Last updated