Skip to content

Add the release workflow - #162

Closed
RikusVanRensburg wants to merge 1 commit into
mainfrom
ci/RVR/release-workflow
Closed

RikusVanRensburg wants to merge 1 commit into
mainfrom
ci/RVR/release-workflow

Conversation

@RikusVanRensburg

Copy link
Copy Markdown
Contributor

Closes #153

What changed

  • .github/workflows/release.yml, run by an annotated v* tag. Jobs: Verify (tag is annotated, equals the workspace version, is on main; release-versions.sh check; the CHANGELOG section exists), Linux packages and image (the three .deb files and the image for amd64, arm64 and arm/v6), Windows installer (Koppel-Setup.exe, unsigned), and Push, sign and publish (image push as <version> and latest, cosign signature of the image by digest, SHA256SUMS and its cosign bundle, the GitHub release with the CHANGELOG section and a Verify section). latest and a normal release only for a version without -; -rc and the like are pre-releases.
  • .github/scripts/release-versions.sh: check lists every place that names another version than the workspace (composes, README status line, image tag and .deb names, docs/windows.md, docs/installers.md); write rewrites them. Chosen over a template engine because the files stay readable as they are. .github/scripts/changelog-section.sh prints a version's CHANGELOG section.
  • Manual run (workflow_dispatch) is a dry run: same checks and builds, nothing pushed or published.
  • docs/building.md "To release" rewritten.

Secrets the owner must add (Settings, Secrets and variables, Actions)

  • DOCKERHUB_USERNAME: the Docker Hub account that owns matumisoftware/koppel.
  • DOCKERHUB_TOKEN: an access token for it with Read & Write on that repository.
  • Signing needs no secret: cosign signs keyless with the workflow's GitHub identity (id-token: write on the publish job only). Until both secrets exist, a tag run stops in its first job with an error naming the missing ones, before building or pushing anything.

Not done

  • Cutting 0.2.1 with it: left to the owner (secrets first, CHANGELOG.md is the owner's session's, and the version is still 0.2.0). Without the secrets, release by hand as docs/building.md says.
  • The Windows installer job has never run on a runner (it needs cargo-about, the .NET SDK and a download of the VC++ redistributable). Verify it with a manual run of the workflow after merge; a fix, if one is needed, goes in a follow-up.
  • No SBOM; the installer stays unsigned until a certificate exists (the release notes say so).

Testing

  • actionlint (with shellcheck), run in its Docker image on the workflow: no findings.
  • release-versions.sh check passes on main; check 0.2.1 lists the stale places; write 0.2.1 then check 0.2.1 passes (reverted afterwards). changelog-section.sh 0.2.0 prints the section and 0.9.9 fails.
  • The workflow itself cannot run before it is on the default branch. Not run: a tag run, the Docker Hub push, cosign, the Windows job.
  • Docs changed: docs/building.md.

Changelog notes: no wire, on-disk or settings change. Release process: tag-driven; see docs/building.md.

🤖 Generated with Claude Code

…release

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@RikusVanRensburg

Copy link
Copy Markdown
Contributor Author

Dropped: the owner decided Koppel uses no runners.

@RikusVanRensburg
RikusVanRensburg deleted the ci/RVR/release-workflow branch November 12, 2026 19:30
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.

A release is one annotated tag and a workflow

1 participant