go-ci (sha256:f5b665328171a432760191f439fa727586612ac307cc70bd42d0095c2590fc5a)
Published 2026-07-17 22:50:05 +00:00 by andy
Installation
docker pull git.bit-monkey.io/bmp/go-ci@sha256:f5b665328171a432760191f439fa727586612ac307cc70bd42d0095c2590fc5asha256:f5b665328171a432760191f439fa727586612ac307cc70bd42d0095c2590fc5aImage layers
| # debian.sh --arch 'arm64' out/ 'bookworm' '@1783900800' |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; dpkgArch="$(dpkg --print-architecture)"; if [ "$dpkgArch" = 'arm64' ]; then apt-get install -y --no-install-recommends binutils-gold; fi; rm -rf /var/lib/apt/lists/* # buildkit |
| ENV GOLANG_VERSION=1.26.5 |
| 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 /target/ / # buildkit |
| RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
| WORKDIR /go |
| ARG GOLANGCI_LINT_VERSION=v2.11.4 |
| ARG TEMPL_VERSION=latest |
| ARG GORELEASER_PRO_VERSION=v2.17.0 |
| ARG NODE_MAJOR=22 |
| RUN |4 GOLANGCI_LINT_VERSION=v2.11.4 TEMPL_VERSION=latest GORELEASER_PRO_VERSION=v2.17.0 NODE_MAJOR=22 /bin/sh -c curl -fsSL https://deb.nodesource.com/setup_${NODE_MAJOR}.x | bash - && apt-get install -y --no-install-recommends nodejs jq unzip && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |4 GOLANGCI_LINT_VERSION=v2.11.4 TEMPL_VERSION=latest GORELEASER_PRO_VERSION=v2.17.0 NODE_MAJOR=22 /bin/sh -c curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin "${GOLANGCI_LINT_VERSION}" # buildkit |
| RUN |4 GOLANGCI_LINT_VERSION=v2.11.4 TEMPL_VERSION=latest GORELEASER_PRO_VERSION=v2.17.0 NODE_MAJOR=22 /bin/sh -c go install github.com/a-h/templ/cmd/templ@${TEMPL_VERSION} # buildkit |
| RUN |4 GOLANGCI_LINT_VERSION=v2.11.4 TEMPL_VERSION=latest GORELEASER_PRO_VERSION=v2.17.0 NODE_MAJOR=22 /bin/sh -c set -eux; arch="$(dpkg --print-architecture)"; case "$arch" in amd64|arm64|armhf|i386) goreleaser_arch="$arch" ;; *) echo "unsupported architecture: $arch" >&2; exit 1 ;; esac; version="${GORELEASER_PRO_VERSION#v}"; curl -fsSL -o /tmp/goreleaser-pro.deb "https://github.com/goreleaser/goreleaser-pro/releases/download/${GORELEASER_PRO_VERSION}/goreleaser-pro_${version}_${goreleaser_arch}.deb"; dpkg -i /tmp/goreleaser-pro.deb; rm -f /tmp/goreleaser-pro.deb # buildkit |
| RUN |4 GOLANGCI_LINT_VERSION=v2.11.4 TEMPL_VERSION=latest GORELEASER_PRO_VERSION=v2.17.0 NODE_MAJOR=22 /bin/sh -c go version && node --version && npm --version && golangci-lint --version && templ version && goreleaser --version && git --version && jq --version # buildkit |
| ENV GOFLAGS=-mod=readonly GOTOOLCHAIN=local |