drone-golangci-lint (latest)

Published 2024-06-01 19:46:49 +00:00 by sneak in sneak/drone-plugin-golangci-lint

Installation

docker pull git.eeqj.de/sneak/drone-golangci-lint:latest
sha256:123297fe02dd748c6aff1a7cdc706db3e278fbd9faced799a8b0e79a7b11e14d

Image Layers

ADD file:e3abcdba177145039cfef1ad882f9f81a612a24c9f044b19f713b95454d2e3f6 in /
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
ENV GOLANG_VERSION=1.22.3
ENV GOTOOLCHAIN=local
ENV GOPATH=/go
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY /usr/local/go/ /usr/local/go/ # buildkit
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
WORKDIR /go
COPY entrypoint.sh /usr/local/bin/drone-plugin-golangci-lint # buildkit
RUN /bin/sh -c apk update && apk add curl && chmod +x /usr/local/bin/drone-plugin-golangci-lint && addgroup -S golangci-lint && adduser -S golangci-lint -G golangci-lint # buildkit
USER golangci-lint
RUN /bin/sh -c curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin # buildkit
ENV PATH=/home/golangci-lint/go/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENTRYPOINT ["/usr/local/bin/drone-plugin-golangci-lint"]
Details
Container
2024-06-01 19:46:49 +00:00
2
OCI / Docker
linux/amd64
85 MiB
Versions (2) View all
2024-06-01 2024-06-01
latest 2024-06-01