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

17 lines
499 B
YAML

run-pre-commit:
stage: .pre
image: unbound/pre-commit:v0.2.3@sha256:1b3f5461a383cc05409483af62abdc1c2555fc276f61455be4fc26ca639cc343
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