Split Dockerfile into lint + build stages for faster CI feedback #151
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Per sdlc-manager#6: split the Dockerfile into separate stages so lint failures surface faster and we stop downloading golangci-lint on every build.
Proposed structure:
golangci/golangci-lintimage (pinned by sha256). Rungolangci-lint runandmake fmt-check.golangimage (pinned by sha256). Runmake testandmake build.Benefits:
make fmt-checkalso fails fast in lint stage