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