Commit graph

8 commits

Author SHA1 Message Date
281c327f60 fix: correct go.mod to 1.24 (go 1.25 does not exist)
Also use go-version-file in CI so go.mod and workflow stay in sync.
2026-03-22 02:19:12 +00:00
b85a06cf11 ci: add test workflow
Runs go test -race -v ./... on push and PRs to main.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 00:11:25 +01:00
52395c7cd0 fix(ci): use GHCR_TOKEN for GitHub mirror
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 9m27s
Mirror to GitHub / mirror (push) Failing after 3s
Reuse the same token secret for both Docker push and git mirror.
2026-03-21 21:05:43 +00:00
8a7b840b69 fix(ci): use raw git push for GitHub mirror
ad-m/github-push-action chokes on secret substitution in act_runner.
Use plain git commands instead — no third-party action needed.
2026-03-21 21:04:31 +00:00
6346fb7155 chore: update Go module path to github.com/metamorphosis-dev/kafka
Module path now matches the GitHub mirror location.
All internal imports updated across 35+ files.
2026-03-21 19:42:01 +00:00
9a6a40c817 fix(ci): rename GITHUB_TOKEN to GHCR_TOKEN for Forgejo compat
Forgejo reserves GITHUB_TOKEN as a protected secret name.
Use GHCR_USERNAME + GHCR_TOKEN instead.
2026-03-21 19:31:20 +00:00
fed5fa469e fix(ci): use full GitHub URLs for actions
data.forgejo.org is unreachable from the runner. Using https://github.com/
prefix for all action uses to fetch directly from GitHub instead of the
Forgejo marketplace mirror.
2026-03-21 19:26:45 +00:00
c761805b56 ci: add Docker build + push workflow
Forgejo Actions workflow that builds and pushes Docker images on:
- Push to main → tagged 'latest' + short SHA
- Tags matching 'v*' → semver tags (1.0.0, 1.0, latest)
- PRs → build only (no push)

Pushes to both GHCR and Docker Hub with GitHub Actions cache.

Required secrets:
- DOCKERHUB_USERNAME: Docker Hub username
- DOCKERHUB_PASSWORD: Docker Hub access token
- GITHUB_TOKEN: automatically provided by Forgejo (or set manually for GHCR)

Note: Requires a Forgejo Actions runner to be registered. See:
https://forgejo.org/docs/latest/user/actions/#runner-setup
2026-03-21 19:24:04 +00:00