Skip to content

Commit

Permalink
Update golangci version
Browse files Browse the repository at this point in the history
also:
* extract version number to ARG
* provide default values for more convinient local builds

fixes #955 Maintenance for Golang Agent and Quickstarter
  • Loading branch information
serverhorror committed Oct 11, 2023
1 parent cde1355 commit 6717dd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/jenkins-agents/golang/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM opendevstackorg/ods-jenkins-agent-base-ubi8:latest

LABEL maintainer="Michael Sauter <[email protected]>"

ARG goDistributionUrl
ARG goDistributionUrl=https://go.dev/dl/go1.21.3.linux-amd64.tar.gz
ARG golangciVersion=v1.54.2

RUN yum install -y gcc gcc-c++

Expand All @@ -18,7 +19,7 @@ ENV PATH $PATH:/usr/local/go/bin
ENV GOBIN /usr/local/bin

COPY install-golangci-lint.sh /tmp/install-golangci-lint.sh
RUN /tmp/install-golangci-lint.sh -b /usr/local/bin v1.52.2 && \
RUN /tmp/install-golangci-lint.sh -b /usr/local/bin $golangciVersion && \
rm -f /tmp/install-golangci-lint.sh

RUN go install github.com/jstemmer/go-junit-report/[email protected]
Expand Down

0 comments on commit 6717dd3

Please sign in to comment.