This repository has been archived on 2026-03-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ci-templates/Pre-Commit-Go.gitlab-ci.yml
T
argoyle 70de0e388f upgrade: update pre-commit image to version 0.2.8
Updates the pre-commit Docker image to version 0.2.8 to leverage
improvements and fixes in the latest release. This enhances the
quality of the pre-commit hooks used during CI/CD processes.
2025-06-07 19:38:40 +02:00

17 lines
499 B
YAML

run-pre-commit:
stage: .pre
image: unbound/pre-commit:v0.2.8@sha256:6f4966efc90180a6a3039ab8a35f34a4a223fe9fdfdcbfb13634859a87cac616
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
GOPRIVATE: gitlab.com/unboundsoftware
cache:
- key:
files:
- .pre-commit-config.yaml
paths:
- ${PRE_COMMIT_HOME}
before_script:
- echo -e "machine gitlab.com\nlogin gitlab-ci-token\npassword ${CI_JOB_TOKEN}" > ~/.netrc
script:
- pre-commit run --all-files