Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6377483b63 | ||
|
|
1a8fe557ff |
@@ -4,8 +4,6 @@
|
||||
# compile on Alpine musl (off64_t is a glibc type).
|
||||
FROM golangci/golangci-lint:v2.12.2@sha256:5cceeef04e53efe1470638d4b4b4f5ceefd574955ab3941b2d9a68a8c9ad5240 AS lint
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends make && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
# Copy go mod files first for better layer caching
|
||||
|
||||
@@ -3360,9 +3360,9 @@ The Dockerfile uses a multi-stage build. Each stage is pinned by digest, and the
|
||||
lint and builder stages are separate images so the linter's version is fixed
|
||||
independently of the compiler's:
|
||||
|
||||
1. **Lint stage** (`golangci/golangci-lint:v2.12.2`, Debian-based) — installs
|
||||
`make`, downloads dependencies, copies the source, and runs the `gofmt`
|
||||
check, then `script/assets` to extract Alpine.js from `3p/`, then
|
||||
1. **Lint stage** (`golangci/golangci-lint:v2.12.2`, Debian-based) — downloads
|
||||
dependencies, copies the source, and runs the `gofmt` check, then
|
||||
`script/assets` to extract Alpine.js from `3p/`, then
|
||||
`golangci-lint config verify` and `golangci-lint run`, both with
|
||||
`--network=none`.
|
||||
2. **Stylesheet stages** (`debian:bookworm-slim`, with the Tailwind standalone
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
# script/cibuild: run the CI build. The Dockerfile runs the checks
|
||||
# (make fmt-check, lint, test), so a successful build implies a green
|
||||
# repo. Generic: needs no adaptation. The Gitea workflow runs this on
|
||||
# push.
|
||||
# script/cibuild: run the CI build. The Dockerfile runs the checks (the
|
||||
# gofmt check, golangci-lint, the stylesheet check, ESLint, the Markdown
|
||||
# check, make test), so a successful build implies a green repo. Generic:
|
||||
# needs no adaptation. The Gitea workflow runs this on push.
|
||||
set -eu
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
||||
|
||||
Reference in New Issue
Block a user