Skip to content

Add static release workflow and packaging - #12

Merged
msdmazvoid merged 1 commit into
mainfrom
feat/release-workflow
Nov 10, 2026
Merged

msdmazvoid merged 1 commit into
mainfrom
feat/release-workflow

Conversation

@msdmazvoid

Copy link
Copy Markdown
Contributor

Summary

Adds a tag-driven release workflow and a local make release target that packages static Linux x86_64/amd64 artifacts.

Release contents

Every command under cmd/ is built with CGO_ENABLED=0, GOOS=linux, GOARCH=amd64, -trimpath, and stripped with -s -w:

  • kouja-agent (with main.agentVersion injected)
  • kouja-backup
  • kouja-csi-controller
  • kouja-csi-node
  • kouja-restore
  • terraform-provider-kouja (versioned release filename and main.version injected)

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

  • Triggers on annotated v* tags, published releases, and manual dispatch with an existing tag.
  • Runs tests and vet before building.
  • Builds the embedded UI before compiling the agent.
  • Verifies every executable is statically linked, validates all SHA-256 checksums, uploads a workflow artifact, and creates or updates the GitHub release.
  • Existing releases can be repaired by running the workflow manually with the tag.

Release process

Documented in docs/releases.md: create/push v0.1.0, let the workflow generate release notes, or run make release VERSION=v0.1.0 locally.

Verification

  • make test
  • make lint
  • make coverage-check (80.4%)
  • make release VERSION=v0.1.0 validated locally; all binaries report statically linked and checksum verification passes.

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.
@msdmazvoid
msdmazvoid merged commit ea29ec8 into main Nov 10, 2026
2 checks passed
@msdmazvoid
msdmazvoid deleted the feat/release-workflow branch November 10, 2026 00:53
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.

1 participant