Repository navigation
ci: release with chant release - #73
Merged
Merged
Conversation
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 #72
Releases move to
chant release(chant 0.124.103, run with a pinnednpx; chant is not a dependency)..github/workflows/release.ymlkeeps its name and is now generated bychant release workflowfromchant.config.json; it is started by hand (just release X.Y.Z, orgh workflow run release.yml -f label=auto), cuts the newest green commit ofmain, pushesvX.Y.Zand publishes.What the old release produced, and where it lands now:
release --cleanon av*tag)mudflaps_X.Y.Z_<os>_<arch>.tar.gz(.zipon windows) with README, LICENSE, CHANGELOGbuildsandarchives, run at the cut asgoreleaser release --snapshotwithsnapshot.version_template: "{{ .Env.CHANT_RELEASE_LABEL }}"; recorded by digest asartifact:goreleaserchecksums.txtvX.Y.Zforgetarget on INTENTIUS/mudflaps, tagv{version}; the existingv*tags are read as history (legacyTags)docs:/test:/chore:notes.generate: "commits"with every conventional type except those three; non-conventional subjects are no longer listed (INTENTIUS/chant#5270)ghcr.io/intentius/mudflaps:X.Y.Zand:latest, linux/amd64 + linux/arm64,VERSIONbuild-arg, OCI source/version/licenses labelsrelease.imagesentry building the top-levelDockerfilefor both platforms, reproducibly, with the same build-arg and labels;ocitarget with tags{label}andlatest:X.Y.Z-amd64/:X.Y.Z-arm64per-arch tagsNo SBOMs or signatures existed before, and none are added.
dockers,docker_manifestsandchangelogleave.goreleaser.yaml, since chant builds the image and writes the notes.Dockerfile.goreleaseris no longer used and is left in place. The image archive is written toout/(ignored) because goreleaser's--cleanemptiesdist/.RELEASING.md,CONTRIBUTING.md, and thejust release/make releaserecipes describe the new flow; the recipes keep their preflight (cleanmain, CHANGELOG section, build/vet/gofmt/test) and dispatch the workflow instead of pushing a tag.Checks run locally:
go build,go vet,gofmt -l,go test ./...,golangci-lint run: pass.goreleaser release --snapshot --clean --skip=publish(goreleaser 2.17.0) withCHANT_RELEASE_LABEL=0.5.1: the same six archives andchecksums.txtas v0.5.0's release, binary reportsversion=0.5.1.chant release next:0.5.1, patch from the tagv0.5.0.chant release cut auto --dry-runin a scratch clone: refused withrelease-commit-not-greenbecause this commit has no checks yet. Withgreen: "none"in the scratch clone only, the dry run built the multi-arch image archive and the goreleaser files and planned both targets.chant release doctor: forge token and access ok; GHCR credentials can't be checked from a workstation (the job getsOCI_USERNAME/OCI_PASSWORDfromgithub.token).chant audit . --fail-on merge-worthy: the generatedrelease.ymlhas two merge-worthy findings, GHA049 and SEC010, from chant's generator (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.