This commit is contained in:
parent
a120547403
commit
f638083774
1 changed files with 4 additions and 4 deletions
|
@ -25,14 +25,14 @@ RUN apt-get update && \
|
|||
ln -s /usr/bin/llc-14 /usr/bin/llc
|
||||
|
||||
# Install Go
|
||||
RUN curl -L https://go.dev/dl/go1.20.4.linux-amd64.tar.gz | tar -xvz -C /usr/local
|
||||
RUN curl -L https://go.dev/dl/go1.20.6.linux-arm64.tar.gz | tar -xz -C /usr/local
|
||||
|
||||
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||
GOPATH=/go
|
||||
|
||||
# Install GoReleaser
|
||||
RUN export GORELEASER_VERSION=$(curl https://api.github.com/repos/goreleaser/goreleaser/releases | jq -r '. | first |.tag_name | capture("(?<version>[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+)") | .version') && \
|
||||
curl -Lo /tmp/goreleaser.deb "https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_${GORELEASER_VERSION}_amd64.deb" && \
|
||||
curl -Lo /tmp/goreleaser.deb "https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_${GORELEASER_VERSION}_arm64.deb " && \
|
||||
apt install /tmp/goreleaser.deb && \
|
||||
rm -f /tmp/*.deb && \
|
||||
goreleaser --version
|
||||
|
@ -40,9 +40,9 @@ curl -Lo /tmp/goreleaser.deb "https://github.com/goreleaser/goreleaser/releases/
|
|||
COPY --from=tools /go/bin/* /usr/local/bin/
|
||||
|
||||
# Install go tools
|
||||
RUN curl -L https://github.com/go-task/task/releases/latest/download/task_linux_amd64.tar.gz | tar -xvz -C /usr/local/bin task \
|
||||
RUN curl -L https://github.com/go-task/task/releases/latest/download/task_linux_arm64.tar.gz | tar -xvz -C /usr/local/bin task \
|
||||
&& export BUF_VERSION=$(curl https://api.github.com/repos/bufbuild/buf/releases | jq -r '. | first |.tag_name') && \
|
||||
curl -Lo /usr/bin/buf "https://github.com/bufbuild/buf/releases/download/${BUF_VERSION}/buf-Linux-x86_64" \
|
||||
curl -Lo /usr/bin/buf "https://github.com/bufbuild/buf/releases/download/${BUF_VERSION}/buf-Linux-aarch64" \
|
||||
&& chmod +x /usr/bin/buf \
|
||||
&& go version \
|
||||
&& golangci-lint --version \
|
||||
|
|
Loading…
Reference in a new issue