Compare commits

...

2 Commits

Author SHA1 Message Date
Anton Zadvorny b95e9775b2 Update golangci-lint version
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2024-05-21 14:21:01 +03:00
Anton Zadvorny 127b47ae8d Change tab size 2024-05-21 14:20:30 +03:00
1 changed files with 12 additions and 12 deletions

View File

@ -6,21 +6,21 @@ ENV TERM=xterm-color
ENV CGO_ENABLED=0 ENV CGO_ENABLED=0
ENV GOPRIVATE=go.pkg.cx ENV GOPRIVATE=go.pkg.cx
ENV GOLANGCI=1.57.2 ENV GOLANGCI=1.58.2
RUN \ RUN \
apk add --no-cache --update bash curl git tzdata && \ apk add --no-cache --update bash curl git tzdata && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
RUN \ RUN \
cp /usr/share/zoneinfo/${TZ} /etc/localtime && \ cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
echo "${TZ}" > /etc/timezone && date echo "${TZ}" > /etc/timezone && date
RUN \ RUN \
# install golangci-lint # install golangci-lint
go install -v -ldflags "-X 'main.version=${GOLANGCI}' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \ go install -v -ldflags "-X 'main.version=${GOLANGCI}' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
# cleanup # cleanup
go clean -cache -modcache && \ go clean -cache -modcache && \
# print versions # print versions
go version && \ go version && \
golangci-lint --version golangci-lint --version