From 84d58bd4726bab990ee146438d5054df69f28afe Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Thu, 5 Aug 2021 16:27:52 +0500 Subject: [PATCH] :construction_worker: Use official golangci-lint docker image --- .drone.yml | 5 ++--- .gitlab-ci.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index a129c53..ea5fa82 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,10 +17,9 @@ steps: path: /go - name: lint - image: golang + image: golangci/golangci-lint commands: - - wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1 - - ./bin/golangci-lint run + - golangci-lint run ./... failure: ignore volumes: - name: deps diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f99d5c7..7f35ce5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,9 +42,8 @@ cover: cobertura: coverage.xml lint: + image: golangci/golangci-lint stage: test - before_script: - - wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1 script: - - ./bin/golangci-lint run + - golangci-lint run $REPO_NAME/... allow_failure: true