Split Dockerfile: pre-built golangci-lint stage for faster CI #20

Закрито
2026-03-02 08:51:22 +01:00 відкрито clawbot · 1 коментар
clawbot прокоментував(ла) 2026-03-02 08:51:22 +01:00
Співавтор

Goal

Split the Dockerfile into a dedicated lint stage using the pre-built golangci/golangci-lint image, so lint and formatting failures surface much faster without downloading golangci-lint on every build.

Key details

  • Lint stage: golangci/golangci-lint image runs make fmt-check + make lint
  • Build stage: standard Go image runs make test + make build
  • COPY --from=lint /src/go.sum /dev/null creates BuildKit stage dependency (without this, lint is silently skipped)
  • All images pinned by sha256 per REPO_POLICIES
  • Reference: sneak/upaas Dockerfile

Tracked from sdlc-manager#6.

## Goal Split the Dockerfile into a dedicated lint stage using the pre-built `golangci/golangci-lint` image, so lint and formatting failures surface much faster without downloading golangci-lint on every build. ## Key details - Lint stage: `golangci/golangci-lint` image runs `make fmt-check` + `make lint` - Build stage: standard Go image runs `make test` + `make build` - `COPY --from=lint /src/go.sum /dev/null` creates BuildKit stage dependency (without this, lint is silently skipped) - All images pinned by sha256 per REPO_POLICIES - Reference: [sneak/upaas Dockerfile](https://git.eeqj.de/sneak/upaas/src/branch/main/Dockerfile) Tracked from [sdlc-manager#6](https://git.eeqj.de/clawbot/sdlc-manager/issues/6).
clawbot закрив(ла) цю задачу 2026-03-02 09:28:31 +01:00
clawbot прокоментував(ла) 2026-03-02 10:12:58 +01:00
Автор
Співавтор

Closing: duplicate of #18.

Closing: duplicate of [#18](https://git.eeqj.de/sneak/pixa/issues/18).
Увійдіть, щоб приєднатися до розмови.
1 учасників
Сповіщення
Строк виконання
Термін виконання не встановлений.
Залежності

Залежностей не встановлено.

Посилання: sneak/pixa#20