Repository navigation
Add static release workflow and packaging - #12
Merged
Merged
Conversation
Build every cmd executable for linux/amd64 with CGO disabled, package the agent, backup, restore, CSI, provider, units, docs, and installer, verify checksums, and publish release assets on v* tags.
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.
Summary
Adds a tag-driven release workflow and a local
make releasetarget that packages static Linux x86_64/amd64 artifacts.Release contents
Every command under
cmd/is built withCGO_ENABLED=0,GOOS=linux,GOARCH=amd64,-trimpath, and stripped with-s -w:kouja-agent(withmain.agentVersioninjected)kouja-backupkouja-csi-controllerkouja-csi-nodekouja-restoreterraform-provider-kouja(versioned release filename andmain.versioninjected)The archive also includes
config.example.yaml,kouja-init.sh, the installer, systemd units, documentation, README, LICENSE,SHA256SUMS, and the standalone provider checksum.Workflow behavior
v*tags, published releases, and manual dispatch with an existing tag.Release process
Documented in
docs/releases.md: create/pushv0.1.0, let the workflow generate release notes, or runmake release VERSION=v0.1.0locally.Verification
make testmake lintmake coverage-check(80.4%)make release VERSION=v0.1.0validated locally; all binaries report statically linked and checksum verification passes.