build: move GOLANGCI_VERSION to build.env

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos
2020-06-22 14:06:43 +02:00
committed by mergify[bot]
parent 33dc861f23
commit bc2ac1ccac
4 changed files with 10 additions and 5 deletions

View File

@ -10,7 +10,6 @@
FROM fedora:latest
ARG GOLANGCI_VERSION=v1.21.0
ARG GOSEC_VERSION=2.0.0
ARG GOPATH=/go
@ -19,7 +18,10 @@ ENV \
GO111MODULE=on \
PATH="${GOPATH}/bin:/opt/commitlint/node_modules/.bin:${PATH}"
RUN dnf -y install \
COPY build.env /
RUN source /build.env \
&& dnf -y install \
git \
make \
golang \