Commit Graph
15 Commits
Author SHA1 Message Date
lukaszraczylo f9b22ef8d9 feat(preflight): fail early when a secret or repository access is missing
A release run used to fail at the GoReleaser step when a secret was
empty, after the tests and the version job had finished.

A new preflight action checks the required names, the .Env references
in the GoReleaser config and push access to optional repositories. It
lists every problem in one run. The release and release-cgo workflows
run it in a first job, so a missing secret fails in seconds.

The release-cgo workflow requires GORELEASER_PRO. The release workflow
requires the secrets that the GoReleaser config references. Set the
preflight input to false to skip the check. Set preflight-repos to check
access to a Homebrew tap or helm-charts repository.
2026-10-02 01:23:56 +01:00
lukaszraczylo cce6b9d88c feat(workflows): add runner input, timeouts and release concurrency
The release, release-cgo and autoupdate workflows must run on a runner
the caller chooses. Each workflow now takes a runner input. It accepts
a label or a JSON object that selects a runner group.

The workflow uses inputs.runner first. It then uses the
SHARED_ACTIONS_RUNNER variable and falls back to ubuntu-latest. Callers
that set nothing keep the old behaviour.

Every job now has a timeout. Release and autoupdate runs use a
concurrency group that never cancels a running job.
2026-10-02 01:20:24 +01:00
lukaszraczylo 72ef4441eb feat(go-release): add optional runner input (default ubuntu-latest)
Lets a caller run the release jobs on a self-hosted runner via with.runner,
e.g. runner: self-hosted. Defaults to ubuntu-latest so existing consumers are
unaffected.
2026-06-18 13:36:28 +01:00
lukaszraczylo 58ab34e4cf ci: expose computed VERSION/VERSION_TAG to workflow-prepare.sh in release job
The release job now passes the calculated semver (bare VERSION and v-prefixed VERSION_TAG) into the repo-local workflow-prepare.sh hook's environment, so a consumer repo can stamp its version into source at build time. Needed for runtimes that cannot resolve their version from build info at runtime (e.g. Yaegi-interpreted Traefik plugins). Additive and backward-compatible: the test/version jobs run the hook without a version, and repos with no hook (or one that ignores VERSION) are unaffected.
2026-05-30 13:06:13 +01:00
lukaszraczylo e4dac8969a chore(actions): bump shared actions to latest major versions
- actions/checkout v4 -> v6
- actions/setup-go v5 -> v6
- actions/setup-node v4 -> v6
- actions/upload-artifact v4 -> v7
- actions/download-artifact v4 -> v8
- actions/github-script v7 -> v9
- goreleaser/goreleaser-action v6 -> v7
- docker/login-action v3 -> v4
- docker/setup-buildx-action v3 -> v4
- docker/setup-qemu-action v3 -> v4
- sigstore/cosign-installer v3 -> v4
- peter-evans/create-pull-request v7 -> v8
2026-05-21 03:14:01 +01:00
lukaszraczylo b4d172b69c fixup! fixup! Add LFS support to the workflows. 2025-12-19 18:19:53 +00:00
lukaszraczylo 18b88d10ed Add LFS support to the workflows. 2025-12-19 02:15:13 +00:00
lukaszraczylo 1b7d34effa fixup! Extend workflows to allow for quirks. 2025-12-16 12:38:41 +00:00
lukaszraczylo 08bda799dd Extend workflows to allow for quirks. 2025-12-16 12:19:28 +00:00
lukaszraczylo a663cc531f fixup! fixup! fixup! feat: use GoReleaser Pro for split/merge CGO builds 2025-12-15 00:15:24 +00:00
lukaszraczylo e9a3a6b5a5 fixup! feat: use GoReleaser Pro for split/merge CGO builds 2025-12-14 23:41:20 +00:00
lukaszraczylo f01c18353f Utilise composite workflows. 2025-12-14 19:54:19 +00:00
lukaszraczylo c489e4506c Update deprecated actions. 2025-12-14 19:54:18 +00:00
lukaszraczylo b81a45fb55 Add ability to build docker images and gha's 2025-12-14 19:54:15 +00:00
lukaszraczylo 5f64b6c44f Add shared go release workflow. 2025-12-07 13:32:37 +00:00