mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 12:40:31 +00:00
- CI: integration job — build NORA, docker push/pull, npm publish/install, API checks - release: cache-from with ignore-error=true (no dependency on localhost:5000) - RELEASE_RUNBOOK.md: rollback procedure, deploy order, verification steps
2.1 KiB
2.1 KiB
Release Runbook
Release process
- Update version in
nora-registry/Cargo.toml - Update
CHANGELOG.md - Commit:
chore: bump version to X.Y.Z - Tag:
git tag vX.Y.Z && git push origin vX.Y.Z - CI builds binary + 3 Docker images (alpine, redos, astra)
- CI runs trivy scan on all images
- CI creates GitHub Release with binary, checksums, SBOM
Deploy order
- ai-server (internal) — update first, verify
- PROD — update after ai-server is stable
- GHCR — public images pushed by CI automatically
Rollback
Quick rollback (revert to previous version)
# On ai-server
docker pull ghcr.io/getnora-io/nora:PREVIOUS_VERSION
docker stop nora && docker rm nora
docker run -d --name nora -p 4000:4000 \
-v /srv/nora-data:/data \
ghcr.io/getnora-io/nora:PREVIOUS_VERSION
Delete a broken release
# 1. Delete GitHub Release (keeps tag)
gh release delete vX.Y.Z --yes
# 2. Delete tag
git tag -d vX.Y.Z
git push origin :refs/tags/vX.Y.Z
# 3. Delete GHCR images (all variants)
for suffix in "" "-redos" "-astra"; do
gh api -X DELETE /user/packages/container/nora/versions \
--jq ".[] | select(.metadata.container.tags[] | contains(\"X.Y.Z${suffix}\")) | .id" \
| xargs -I{} gh api -X DELETE /user/packages/container/nora/versions/{}
done
Binary rollback
curl -LO https://github.com/getnora-io/nora/releases/download/vPREVIOUS/nora-linux-amd64
chmod +x nora-linux-amd64
sudo mv nora-linux-amd64 /usr/local/bin/nora
sudo systemctl restart nora
Verification after deploy
# Health check
curl -sf http://localhost:4000/health | jq .
# Docker API
curl -sf http://localhost:4000/v2/ | jq .
# Push test image
docker pull alpine:3.20
docker tag alpine:3.20 localhost:4000/test/alpine:smoke
docker push localhost:4000/test/alpine:smoke
docker pull localhost:4000/test/alpine:smoke
Known issues
- Self-hosted runner uses localhost:5000 (NORA) for buildx cache. If NORA is down during release, build continues without cache (ignore-error=true).
- Trivy image scan runs after push to localhost:5000 but before GitHub Release. A failed scan blocks the release.