Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit 55a68b7

Browse files
committed
Adding ARG for setting golangci-lint version
Adds the GOLANGCI_LINT_VERSION ARG to the Dockerfile so it's easier to maintain which version to use Signed-off-by: Nick Adcock <[email protected]>
1 parent a214a4a commit 55a68b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
ARG GO_VERSION=1.13.7
2+
ARG GOLANGCI_LINT_VERSION=v1.23.6
23
ARG ALPINE_VERSION=3.11.3
34

45

56

67
FROM golang:${GO_VERSION} AS builder
78

8-
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
9+
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
910

1011
ARG MAKE_TARGET=all
1112
ENV CGO_ENABLED=0

0 commit comments

Comments
 (0)