Repository navigation
ci(release): publish through chant release - #33
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #32
Moves spritzer's releases onto
chant release. The Release workflow (.github/workflows/release.yml, same file name) is now generated bychant release workflowfrom thereleaseblock inchant.config.json, and is started by hand with a label (just release X.Y.Z, orlabel=auto).What a release ships, before and after
v*tag push)release --snapshot --skip=publishat the cut, chant records the files and uploads themchecksums.txtghcr.io/intentius/spritzer:X.Y.Zand:latest, linux/amd64 + linux/arm64Dockerfilewith the version build arg and pushes one multi-arch index:X.Y.Z-amd64and:X.Y.Z-arm64per-arch tagsocitarget can't tag per-platform manifests (INTENTIUS/chant#5269); no doc names these tagsDockerfile## [X.Y.Z]section ofCHANGELOG.md, then GitHub's generated notesvX.Y.Zv*tags are read as the previous releases (legacyTags)release.intoto.jsonprovenance on the GitHub Release and as an image referrerNo SBOMs, signatures, Homebrew, Scoop, krew or winget entries existed before, and none are added.
Other changes
.goreleaser.yaml:dockers/docker_manifestsdropped (chant builds the image),snapshot.version_templateset to the release label, the unusedchangelog/releasesections dropped.Dockerfile.goreleaseris no longer used; it is left in place.just release/make releasekeep their preflight checks and dispatch the workflow instead of pushing a tag. RELEASING.md, CONTRIBUTING.md and CHANGELOG.md describe the new flow.build/images/(gitignored), outside goreleaser'sdist, which--cleanwipes.Checks
go build,go vet,gofmt,go test,golangci-lint,mkdocs build --strict,goreleaser check: pass.chant release next:0.6.3, patch fromv0.6.2, tagv0.6.3.chant release cut auto --dry-run: withforge-checksit refuses because the commit has no checks yet. In a scratch clone withgreen: noneand 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 theociandforgetargets.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 existingci.ymlanddocs.yml.No release was cut, tagged or published.