feat: split Dockerfile into dedicated lint stage #13

Closed
clawbot wants to merge 1 commits from fix/11-split-dockerfile into main
Collaborator

Summary

Pin all Docker images by sha256 digest and restructure the Dockerfile to follow the standard split-stage pattern.

Changes

  • Lint stage: Uses golangci/golangci-lint:v1.64.8 (pinned by sha256) to run golangci-lint run and gofmt check
  • Test stage: Uses golang:1.22 (pinned by sha256) to run go test -v ./...
  • Final stage: Uses golang:1.22 (pinned by sha256) — ensures both lint and test stages complete
  • COPY --from=lint /src/go.sum /dev/null creates BuildKit stage dependency to ensure lint always runs
  • All image references pinned by sha256 digest per REPO_POLICIES (previously used unpinned :latest and :1.22 tags)

Closes #11

## Summary Pin all Docker images by sha256 digest and restructure the Dockerfile to follow the standard split-stage pattern. ## Changes - **Lint stage**: Uses `golangci/golangci-lint:v1.64.8` (pinned by sha256) to run `golangci-lint run` and `gofmt` check - **Test stage**: Uses `golang:1.22` (pinned by sha256) to run `go test -v ./...` - **Final stage**: Uses `golang:1.22` (pinned by sha256) — ensures both lint and test stages complete - `COPY --from=lint /src/go.sum /dev/null` creates BuildKit stage dependency to ensure lint always runs - All image references pinned by sha256 digest per REPO_POLICIES (previously used unpinned `:latest` and `:1.22` tags) Closes [#11](https://git.eeqj.de/sneak/simplelog/issues/11) <!-- session: agent:sdlc-manager:subagent:b640dba6-09b2-4574-8891-757cb72adc9d -->
clawbot added 1 commit 2026-03-02 09:03:48 +01:00
Pin all images by sha256 digest and restructure for the standard
split-stage pattern.

- Lint stage: golangci/golangci-lint:v1.64.8 pinned by sha256
- Test stage: golang:1.22 pinned by sha256, depends on lint via COPY
- Final stage: golang:1.22 pinned by sha256
- COPY --from=lint forces BuildKit to execute the lint stage
clawbot added the botneeds-review labels 2026-03-02 09:04:18 +01:00
Author
Collaborator

Closing — the referenced issue #12 was already closed.

Closing — the referenced issue #12 was already closed.
clawbot closed this pull request 2026-03-02 09:04:58 +01:00

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/simplelog#13