Files
Heimdall/skills/release-automation/SKILL.md
T
arnaud.dartois 636154572b
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 19m19s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 6m13s
Heimdall Gitea / Build and scan agent image (push) Successful in 14m44s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m48s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m9s
Heimdall Gitea / CI policy (push) Successful in 10s
Complete remaining Heimdall features and acceptance
Merge pull request #138

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-06 11:14:49 +01:00

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 on main, and pass the complete verify job before publication starts.
  • RELEASE_SERVER_URL must be the expected HTTPS forge origin and must match BUILD_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.