Skip to content

Commit

Permalink
ci: install go version specified in build.env
Browse files Browse the repository at this point in the history
installed the go version specified in build.env
in the test docker image.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Dec 9, 2021
1 parent 3c39212 commit cd7fcc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
FROM registry.fedoraproject.org/fedora:latest

ARG GOPATH=/go
ARG GOROOT=/usr/local/go

ENV \
GOPATH=${GOPATH} \
Expand All @@ -23,7 +24,6 @@ RUN source /build.env \
&& dnf -y install \
git \
make \
golang \
gcc \
librados-devel \
librbd-devel \
Expand All @@ -38,6 +38,9 @@ RUN source /build.env \
&& dnf -y update \
&& dnf -y clean all \
&& gem install mdl \
&& mkdir -p ${GOROOT} \
&& curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz \
| tar xzf - -C ${GOROOT} --strip-components=1 \
&& curl -sf "https://install.goreleaser.com/github.com/golangci/golangci-lint.sh" \
| bash -s -- -b ${GOPATH}/bin "${GOLANGCI_VERSION}" \
&& curl -L https://git.io/get_helm.sh | bash -s -- --version "${HELM_VERSION}" \
Expand Down

0 comments on commit cd7fcc6

Please sign in to comment.