mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
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
5 lines
227 B
Docker
5 lines
227 B
Docker
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
|