Clean caches after installing tools
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fc824c1324
commit
da07dd611a
13
Dockerfile
13
Dockerfile
@ -20,14 +20,15 @@ RUN \
|
||||
echo "${TZ}" > /etc/timezone && date
|
||||
|
||||
RUN \
|
||||
go version
|
||||
|
||||
RUN \
|
||||
# install golangci-lint
|
||||
go get -u -v github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
|
||||
go install -ldflags "-X 'main.version=$(git describe --tags)' -X 'main.commit=$(git rev-parse --short HEAD)' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint && \
|
||||
golangci-lint --version
|
||||
|
||||
RUN \
|
||||
# install goswag
|
||||
go get -u -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
|
||||
go install github.com/swaggo/swag/cmd/swag && \
|
||||
# cleanup
|
||||
go clean -cache -modcache && \
|
||||
# print versions
|
||||
go version && \
|
||||
golangci-lint --version && \
|
||||
swag --version
|
||||
|
Loading…
Reference in New Issue
Block a user