From 318e08d4ae6b82845f91534f5d0abae65b583e31 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sun, 16 Jul 2023 10:59:18 +0200 Subject: [PATCH] ci: use pre-commit image --- .gitlab-ci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4961066..2ca2fff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,7 @@ image: buildtool/build-tools:${BUILDTOOLS_VERSION} run-pre-commit: stage: .pre - image: golang:1.20.4 + image: unbound/pre-commit variables: PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit cache: @@ -20,11 +20,6 @@ run-pre-commit: - .pre-commit-config.yaml paths: - ${PRE_COMMIT_HOME} - before_script: - - apt update && apt install -y python3 python3-pip ruby git - - go install github.com/lietu/go-pre-commit@latest - - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2 - - pip install pre-commit script: - pre-commit run --all-files -- 2.52.0