Upgrading
Upgrading a runtime
Section titled “Upgrading a runtime”-
Back up the data directory (see Backups and secrets).
-
Get the new version: download the release binary (and verify it, see Installation), pull
ghcr.io/cicord/cicord:<version>, or update your checkout and rebuild (git pull && make all, ordocker buildagain). -
Validate your configuration repository with the new binary before restarting the runtime:
Terminal window cicord validate path/to/your-repo -
Restart the runtime (
docker stopsendsSIGTERM; the HTTP server and the bots shut down gracefully in about 25 seconds). -
Check
GET /readyzandcicord status: the revision should be active and every serverSyncedandHealthy.
What to watch for
Section titled “What to watch for”engineranges. Yourcicord.yamldeclaresspec.engine(for example">=0.1.0 <0.2.0"), and each plugin declares its own. A runtime refuses a revision whose range excludes its version. Widen the range in the same change as the upgrade if the new version is compatible.apiVersion. Every file usescicord.dev/v1alpha1. A breaking change of the format is meant to bump it.- Bundled plugins. Copies of the official plugins in
plugins/<name>/are not changed by an upgrade. A newer binary may bundle newer versions: the admin console shows “Update available”, andcicord plugin updatelists them. A copy you modified is only overwritten when you force it. - Vendored SDK packages. Plugins scaffolded by
cicord plugin newand portals scaffolded bycicord portal initvendor the@cicord/*tarballs of the binary that created them. Re-run the scaffolding in a scratch directory to pick up the new tarballs, or switch to npm once the packages are published. - The state database is migrated by the runtime itself; keep the backup until the new version has run for a while.
Planned
Section titled “Planned”Release binaries (GoReleaser), a published container image, npm publication of the @cicord/*
packages and a go install that embeds the web UIs are planned, together with a decision on
the runtime license. See Status and roadmap.