Files
cobble/RELEASING.md
T
tben e859bab294 Serve HTTPS by default with a local CA
The installer generates a CA and a 397-day certificate into
$COBBLE_HOME/certs (in the app image, with the host's addresses), mounts
the certificate, key and CA into the container and serves TLS from Bun on
the published port. --no-https opts out; --https-cert/--https-key use a
real certificate, --https-host adds names and --https-regen replaces the
CA. The installer and the image health check use curl -k when TLS is on.

The CA is served at /ca.crt and as an iOS/macOS profile at
/ca.mobileconfig for one-tap install. Development picks up certs/
automatically, `bun run dev:phone` generates and starts, and a plain-HTTP
listener on PORT + 1 redirects to HTTPS. Port sharing is off, so a stale
dev server fails instead of silently answering on the same port.
2026-10-20 10:20:01 +01:00

3.1 KiB

Releasing Cobble

Cobble ships as a multi-arch container image and a single install.sh. The repository starts private and is made public at the launch gate below.

One-time setup

  • GITEA_USERNAME and GITEA_TOKEN are set as GitHub Actions secrets. The token needs package write on the Gitea Moduletrace org.
  • The Gitea repository exists at git.tben.me/Moduletrace/cobble and main is pushed to both remotes.
  • The GHCR package is made public after the first image push (Settings > Packages > cobble > Change visibility).
  • The Gitea package needs nothing: package visibility follows the public Moduletrace org.

Every release

  1. bun run typecheck and bun run test pass locally.

  2. CI is green on main in GitHub Actions.

  3. bash -n install.sh passes.

  4. Test the installer on a clean machine, both amd64 and arm64 when possible: - fresh install, signup, one chat reply - rerun with no changes: reports up to date, no restart - update to a new tag: backup taken, data intact - --uninstall keeps data, --uninstall --purge removes it

  5. Update the version if the release changes it.

  6. Tag and publish a GitHub release:

    git tag v0.1.0
    git push origin main --tags
    gh release create v0.1.0 --title v0.1.0 --generate-notes
    
  7. The release workflow builds linux/amd64 and linux/arm64 and pushes to both registries: - ghcr.io/moduletrace/cobble - git.tben.me/moduletrace/cobble

  8. Check the manifests:

    docker buildx imagetools inspect ghcr.io/moduletrace/cobble:latest
    docker buildx imagetools inspect git.tben.me/moduletrace/cobble:latest
    
  9. Confirm the GHCR package is public and pull it anonymously.

  10. Push the tag to Gitea as well:

    git push gitea main --tags
    
  11. Update every install with the one-liner:

    curl -fsSL https://url.moduletrace.com/cobble | sudo bash
    

Launch gate

Before the first public release:

  • LICENSE, README.md and RELEASING.md are in place.
  • The installer has been tested on a clean amd64 and a clean arm64 host.
  • No secrets are tracked (git status, git ls-files, secret scanning).
  • The GitHub repository and the Gitea mirror are set to public.
  • The GHCR package is public.
  • The first release is installed on the real host and a signup, a chat reply, a computer and a routine have been exercised.
  • A plain curl | bash install ends on https://, /ca.crt downloads, and a device that trusted the CA installs the app, gets a live chat socket and can turn on notifications.
  • --no-https behind a proxy, and --https-cert/--https-key with a real certificate, were each tried once.

Rollback

  • Images are tagged with the release version, so an older tag can be installed with --version vX.Y.Z.
  • The installer keeps the last five database backups in $COBBLE_HOME/backups.
  • Restore a backup from Settings > Backups in the app, or restore the files with the app stopped.