refactor(go): move to newer Ubuntu base image
Some checks failed
agola/ci-images/Build The run failed
Some checks failed
agola/ci-images/Build The run failed
This commit is contained in:
parent
d9f7d33a9e
commit
29afcb050e
1 changed files with 8 additions and 2 deletions
|
@ -7,7 +7,7 @@ RUN go install github.com/golang/mock/mockgen@latest && \
|
|||
go install mvdan.cc/gofumpt@latest && \
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
|
||||
FROM docker.io/golang:1.19-bullseye
|
||||
FROM docker.io/ubuntu:22.04
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install \
|
||||
|
@ -21,7 +21,13 @@ RUN apt-get update && \
|
|||
llvm-13 \
|
||||
elfutils && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
ln -s /usr/bin/llc-13 /usr/bin/llc
|
||||
ln -s /usr/bin/llc-14 /usr/bin/llc
|
||||
|
||||
# Install Go
|
||||
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -xvz -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') && \
|
||||
|
|
Loading…
Reference in a new issue