Commit 7ea0dd0b authored by Hayley Swimelar's avatar Hayley Swimelar

WIP: Add an image for golangci linting

In order to lint only the changes within a merge request, golangci
requires git to be installed. This image alleviates the need to
reinstall git on every CI job.

This image also includes a default `.golangci.yml` file in the hopes
of reducing duplicate work on the topic of golang conventions
at GitLab.

depends on: https://gitlab.com/gitlab-org/gitlab/merge_requests/20404
parent 57a83707
FROM golangci/golangci-lint:v1.21-alpine
# git must be installed for golangci-lint's --new-from-rev flag to work.
RUN apk --no-cache add git
# Include a default .golangci.yml
COPY /scripts/.golangci.yml /golangci/.golangci.yml
This diff is collapsed.
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