Commit 9f388881 authored by Mark Tyneway's avatar Mark Tyneway

ci-builder: go version env var

Makes setting the go version via the env var `GO_VERSION` possible.
Previously it hardcoded the version that it was unpacking but used
the env var in other locations. Now setting the env var for `GO_VERSION`
will allow the user to configure whatever version they want to include
in the image.
parent 0b5074a1
......@@ -39,7 +39,7 @@ ENV GO_VERSION=1.21.1
# Fetch go manually, rather than using a Go base image, so we can copy the installation into the final stage
RUN curl -sL https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz -o go$GO_VERSION.linux-amd64.tar.gz && \
tar -C /usr/local/ -xzvf go1.21.1.linux-amd64.tar.gz
tar -C /usr/local/ -xzvf go$GO_VERSION.linux-amd64.tar.gz
ENV GOPATH=/go
ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment