Skip to content

ci(release): publish through chant release - #33

Merged
lex00 merged 2 commits into
mainfrom
chant-release
Nov 17, 2026
Merged

lex00 merged 2 commits into
mainfrom
chant-release

Conversation

@lex00

@lex00 lex00 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Closes #32

Moves spritzer's releases onto chant release. The Release workflow (.github/workflows/release.yml, same file name) is now generated by chant release workflow from the release block in chant.config.json, and is started by hand with a label (just release X.Y.Z, or label=auto).

What a release ships, before and after

Before (goreleaser on a v* tag push) After (chant release, dispatched)
Binaries for linux, darwin, windows on amd64 and arm64, in tar.gz (zip on Windows) archives with README, LICENSE, CHANGELOG Same: goreleaser runs release --snapshot --skip=publish at the cut, chant records the files and uploads them
checksums.txt Same, from goreleaser
ghcr.io/intentius/spritzer:X.Y.Z and :latest, linux/amd64 + linux/arm64 Same tags and platforms: chant builds the image from Dockerfile with the version build arg and pushes one multi-arch index
:X.Y.Z-amd64 and :X.Y.Z-arm64 per-arch tags Not pushed. chant's oci target can't tag per-platform manifests (INTENTIUS/chant#5269); no doc names these tags
OCI labels source, version, licenses Same, now set in Dockerfile
GitHub Release notes: goreleaser's commit list The ## [X.Y.Z] section of CHANGELOG.md, then GitHub's generated notes
Tag vX.Y.Z Same; the earlier v* tags are read as the previous releases (legacyTags)
none release.intoto.json provenance on the GitHub Release and as an image referrer

No SBOMs, signatures, Homebrew, Scoop, krew or winget entries existed before, and none are added.

Other changes

  • .goreleaser.yaml: dockers/docker_manifests dropped (chant builds the image), snapshot.version_template set to the release label, the unused changelog/release sections dropped. Dockerfile.goreleaser is no longer used; it is left in place.
  • just release / make release keep their preflight checks and dispatch the workflow instead of pushing a tag. RELEASING.md, CONTRIBUTING.md and CHANGELOG.md describe the new flow.
  • Image archive goes to build/images/ (gitignored), outside goreleaser's dist, which --clean wipes.

Checks

  • go build, go vet, gofmt, go test, golangci-lint, mkdocs build --strict, goreleaser check: pass.
  • chant release next: 0.6.3, patch from v0.6.2, tag v0.6.3.
  • chant release cut auto --dry-run: with forge-checks it refuses because the commit has no checks yet. In a scratch clone with green: none and a local bare origin, the dry run built the six goreleaser archives and checksums at version 0.6.3 and the two-platform image (labels and binary version 0.6.3), and planned the oci and forge targets.
  • chant audit . --fail-on merge-worthy: the generated release workflow has two findings, GHA049 on the cut job and SEC010 on the pinned goreleaser digest, filed as release workflow: the generated file fails chant audit with goreleaser artifacts and images (GHA049, SEC010), and sets up Go twice chant#5268. The other findings are in the existing ci.yml and docs.yml.

No release was cut, tagged or published.

The Release workflow is now generated by chant from chant.config.json and
started by hand with the label. goreleaser runs in snapshot mode at the cut
for the binaries, archives and checksums; chant builds the multi-arch image
from the Dockerfile and publishes it to ghcr.io/intentius/spritzer as X.Y.Z
and latest, and publishes the GitHub Release with the CHANGELOG section as
its notes. Tags stay vX.Y.Z.

Closes #32
@lex00
lex00 enabled auto-merge November 17, 2026 21:37
@lex00
lex00 added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 3df73b1 Nov 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

release: publish through chant release

1 participant