Compare commits

..

3 Commits

Author SHA1 Message Date
clawbot
a77096326a Add Gitea Actions CI workflow
Runs docker build . on push to main and pull requests.
2026-03-02 02:09:18 -08:00
clawbot
e6d75ed57f Dockerfile: split into lint/build/runtime stages with pinned images
- Lint stage: golangci/golangci-lint:v1.64.8 (sha256-pinned)
  Runs make fmt-check and make lint for fast feedback
- Build stage: golang:1.24-bookworm (sha256-pinned, matches go.mod 1.24.0)
  COPY --from=lint forces BuildKit to run lint stage
  Runs make test, then make build
- Runtime stage: debian:bookworm-slim (sha256-pinned)
- All base images updated from ancient versions to current
- Removed vendoring/source tarball (per CLAUDE.md: avoid vendoring)
2026-03-02 02:09:14 -08:00
clawbot
3e48b46e3d Makefile: add fmt-check, hooks targets; update check prereqs
- Add fmt-check target for gofmt format verification without modifying files
- Add hooks target to install pre-commit git hook
- Update check target to include fmt-check (check: fmt-check lint test)
- Remove redundant gofmt check from lint target (now in fmt-check)
- Add .PHONY declarations for all phony targets
- Update tools target to use go install
2026-03-02 02:09:07 -08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -2,11 +2,13 @@ name: check
on: on:
push: push:
branches: [main]
pull_request: pull_request:
branches: [main]
jobs: jobs:
check: check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/checkout@v4
- run: docker build . - run: docker build .

View File

@@ -86,4 +86,3 @@ WTFPL (aka public domain):
0. You just DO WHAT THE FUCK YOU WANT TO. 0. You just DO WHAT THE FUCK YOU WANT TO.
``` ```