onionwire/.forgejo
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hermes DevOps 46baf67a14
release: stage dist before signing, and sign via a named volume
The publish job has never completed. Two plumbing bugs, no crypto involved:

1. The sign step ran `docker run -v "${GITHUB_WORKSPACE}:/work"`.
   GITHUB_WORKSPACE is a path INSIDE the job container, but docker resolves a
   bind mount's source on the HOST, where that path does not exist — so /work
   arrived empty and the script was absent. Run 768 failed with
   "bash: .ci-tools/scripts/sign-release.sh: No such file or directory" (127).
   Rehearsed locally against the pinned image: the bind mount yields an empty
   /work, the same command with a named volume + docker cp signs and
   self-verifies all four assets. Use the build jobs' pattern.

2. Signing ran before the files it signs existed. The find+cp loop that fills
   dist/ lived in the publish step, after the signature step. Move it into its
   own "Stage both arch artifacts into dist" step before signing, and let
   publish only validate dist/.

Fail-closed design unchanged: no MINISIGN_SECRET_KEY stops before any upload,
signing still precedes publishing, and the tag cleanup step is untouched.
docs/RELEASING.md described the old publish job; it now matches the workflow.
2026-10-20 23:01:09 -04:00
..
workflows release: stage dist before signing, and sign via a named volume 2026-10-20 23:01:09 -04:00