You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any file which has `.tmpl` extension will be automatically templated
through available variables and put back to the context with `.tmpl`
removed.
Signed-off-by: Andrey Smirnov <[email protected]>
FROM --platform=${BUILDPLATFORM} toolchain AS tools
@@ -84,10 +84,19 @@ COPY .golangci.yml .
84
84
ENV GOGC=50
85
85
RUN --mount=type=cache,target=/root/.cache/go-build,id=bldr/root/.cache/go-build --mount=type=cache,target=/root/.cache/golangci-lint,id=bldr/root/.cache/golangci-lint,sharing=locked --mount=type=cache,target=/go/pkg,id=bldr/go/pkg golangci-lint run --config .golangci.yml
86
86
87
+
# runs golangci-lint fmt
88
+
FROM base AS lint-golangci-lint-fmt-run
89
+
WORKDIR /src
90
+
COPY .golangci.yml .
91
+
ENV GOGC=50
92
+
RUN --mount=type=cache,target=/root/.cache/go-build,id=bldr/root/.cache/go-build --mount=type=cache,target=/root/.cache/golangci-lint,id=bldr/root/.cache/golangci-lint,sharing=locked --mount=type=cache,target=/go/pkg,id=bldr/go/pkg golangci-lint fmt --config .golangci.yml
93
+
RUN --mount=type=cache,target=/root/.cache/go-build,id=bldr/root/.cache/go-build --mount=type=cache,target=/root/.cache/golangci-lint,id=bldr/root/.cache/golangci-lint,sharing=locked --mount=type=cache,target=/go/pkg,id=bldr/go/pkg golangci-lint run --fix --issues-exit-code 0 --config .golangci.yml
94
+
87
95
# runs govulncheck
88
96
FROM base AS lint-govulncheck
89
97
WORKDIR /src
90
-
RUN --mount=type=cache,target=/root/.cache/go-build,id=bldr/root/.cache/go-build --mount=type=cache,target=/go/pkg,id=bldr/go/pkg govulncheck ./...
RUN --mount=type=cache,target=/root/.cache/go-build,id=bldr/root/.cache/go-build --mount=type=cache,target=/go/pkg,id=bldr/go/pkg ./hack/govulncheck.sh ./...
0 commit comments