Fix every Google.Passive finding in the tracked tree: 161 reports across 24 files, including the AGENTS.md symlink duplicate. Vale at suggestion level now reports none. Every rule, invariant, prompt instruction, placeholder and technical claim is preserved.
2.2 KiB
Releasing
One v* tag names a release. One version covers every process in the host
bundle (archied, archie-gateway, archie-state-store, archie-ui,
archie-messaging) and the archie-agent image. No release comes from a
laptop.
Cutting a release
Dispatch the release workflow (.github/workflows/release.yml) with
major, minor, patch or an exact version. It runs task release on
main, which refuses a dirty tree or an existing tag and then tags vx.y.z,
and pushes the tag with DEPLOY_TOKEN. A push made with the job token
wouldn't start other workflows, so the user token is what lets the tag start
the deploy.
What a release publishes
The tag push runs deploy.yml:
- Gate.
task check dist TEST_FLAGS=-count=1andgovulncheck. The same run builds the binaries the zip ships, so it compiles nothing again after the gate. - Images.
archied:v<version>andarchie-agent:v<version>, plussha-<commit>tags.:latestmoves only on promotion. - The signed release.
archied release publishsigns a statement (version,issued_at, zip digest, agent image by digest) withRELEASE_SIGNING_KEYand pushes it with the distribution zip togit.catlow.cloud/sam/archieasv<version>andnext. It never movesstable. - The release page on Gitea, listing the commit subjects since the previous tag. The statement links to it.
Actions run the workflow from the tagged commit, so a fix to deploy.yml
reaches a release only if it is an ancestor of the tag. Cut a new release
rather than committing the fix on top of a tagged one.
Promote
Dispatch the promote workflow (.github/workflows/promote.yml) with a
version. It retags stable to that release and moves the archied and
archie-agent images' :latest to it. Promotion refuses a prerelease and a
release issued before the one stable names, the same replay rule hosts
enforce. The same thing by hand:
archied release promote -version 1.63.0 \
-latest git.catlow.cloud/sam/archied,git.catlow.cloud/sam/archie-agent
Secrets
| Name | Used by |
|---|---|
DEPLOY_TOKEN |
release, deploy, promote: the registry push, the tag push and the package links |
RELEASE_SIGNING_KEY |
deploy: signs the release statement |