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
|
echo "${TZ}" > /etc/timezone && date
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
go version
|
# install golangci-lint
|
||||||
|
|
||||||
RUN \
|
|
||||||
go get -u -v github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
|
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 && \
|
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
|
# install goswag
|
||||||
|
|
||||||
RUN \
|
|
||||||
go get -u -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
|
go get -u -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
|
||||||
go install github.com/swaggo/swag/cmd/swag && \
|
go install github.com/swaggo/swag/cmd/swag && \
|
||||||
|
# cleanup
|
||||||
|
go clean -cache -modcache && \
|
||||||
|
# print versions
|
||||||
|
go version && \
|
||||||
|
golangci-lint --version && \
|
||||||
swag --version
|
swag --version
|
||||||
|
Loading…
Reference in New Issue
Block a user