From 3b41e0eb32a47a38ad5e893f6ed34741c03caf85 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Tue, 10 Nov 2026 14:39:22 +0100 Subject: [PATCH] docs(release): record PR release tag handoff --- skills/release-automation/SKILL.md | 1 + 1 file changed, 1 insertion(+) diff --git a/skills/release-automation/SKILL.md b/skills/release-automation/SKILL.md index e39eca5..651ad3a 100644 --- a/skills/release-automation/SKILL.md +++ b/skills/release-automation/SKILL.md @@ -14,6 +14,7 @@ Use this skill for changes to `.gitea/workflows/build.yml`, `scripts/ci/change_s - A push to `main` validates the changed source and builds/scans/pushes only affected images. The affected image gets immutable `sha-` and mutable `latest` tags on Docker Hub. Main pushes do not create Gitea releases. - Runs for the same ref are serialized so a slower older `main` run cannot overwrite a newer `latest` image. - A `MAJOR.MINOR.PATCH` tag (optional prerelease suffix allowed) is a version release. It validates the complete source and builds/scans server, Agent CPU, and Agent GPU images once each. The verified images are pushed to Docker Hub as `sha-` and the application version. +- When creating a PR, ask whether merging it should trigger a release. If yes, record the user's exact SemVer tag in the PR context. After merge, fetch `main`, verify the PR merge commit is reachable from it, verify the tag is unused, create an annotated tag at that merge commit, and push it to trigger this workflow. Never infer a version or force-update an existing tag. No affirmative release decision means no tag is created. Follow the global `pr-autopilot` skill for this handoff. - The tag release job does not build or scan Docker images. It pulls the already scanned immutable image refs to verify their source revision, then resolves canonical digests from Docker Hub Registry v2 using the immutable commit tags. It creates a signed Gitea release containing `heimdall-installers-.zip`, framework-dependent Agent archives, the public key, signed update manifest, and CPU/GPU image digest manifests. Local Docker `RepoDigests` can contain multiple values and must not be used as a uniqueness check. Build provenance, image-digest bookkeeping, and checksums stay in CI package output and are not uploaded as end-user release assets. It never uploads Docker image archives to Gitea. - The package script uses fast gzip compression for the framework-dependent release archives to reduce release-job CPU time; keep the archive names and layout stable for Linux and Windows installers. - The installer ZIP preserves the `install/` and `docker/` layout consumed by the Linux and Windows server installers. A raw-branch `.sh` or `.ps1` bootstrap resolves Gitea's latest stable version (or an explicit `HEIMDALL_INSTALLER_VERSION`), verifies the Gitea SHA-256 asset digest, downloads that version's ZIP, and runs its version-pinned script. Versioned bundle scripts pin their source assets and server image to the same tag and do not resolve a moving release. Direct Agent install scripts served by Central continue to download Agent payloads through Central's configured Gitea release API.