Merge pull request #138 Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2.1 KiB
name, description
| name | description |
|---|---|
| release-automation | Build, sign, verify, and publish Heimdall tagged releases without exposing signing keys or publishing from pull requests. |
Heimdall tagged release workflow
Use this skill for changes to scripts/ci/package.sh, publish.sh, release-gitea.py, release signing, Docker image tags, or the Gitea release job.
Release invariants
- A release tag must be
vMAJOR.MINOR.PATCH[-prerelease], point to a commit onmain, and pass the completeverifyjob before publication starts. RELEASE_SERVER_URLmust be the expected HTTPS forge origin and must matchBUILD_SERVER_URL; the publisher rejects paths, query strings, user info, and host/port mismatches.- Use a dedicated Gitea
RELEASE_TOKEN, Docker Hub credentials, and a base64 encoded ECDSA P-256 key only in the tagged release job. Never make them available to PR jobs or print them. - Do not overwrite published image tags owned by another commit or mutate an already published Gitea release. Releases remain drafts until an operator promotes them.
- The release includes deterministic Web and Agent archives, provenance, checksums, the public key, immutable image digests, and a signed Agent update manifest.
Offline end-to-end acceptance
Run python3 scripts/ci/accept-release-offline.py from a clean dedicated worktree. The acceptance script invokes the real package.sh and publish.sh, but creates disposable ECDSA P-256 credentials and substitutes both publication boundaries: a local TLS Gitea API double records only draft release/assets, and a fake Docker CLI records tags and simulates registry digests. It verifies archive hashes, manifest signature, checksums, asset uploads, and expected image tags/digests. The fake CLI must never call a registry, and the API server must bind only to loopback, suppress request logging, and reject non-synthetic authorization.
This simulation proves local packaging/signing/orchestration only. It does not prove the Actions secrets, runner network, Docker Hub/Gitea behavior, native Agent installation, or rollback. Keep the release item open in todo.md until a real tagged run and the relevant host validation have succeeded.