f5dc3f883a
This commit updates the Docker images for the pre-commit hooks in both the Node and Go configuration files to their latest versions. This change ensures that we are using the most recent fixes and improvements provided by the pre-commit maintainers, enhancing performance and reliability.
17 lines
499 B
YAML
17 lines
499 B
YAML
run-pre-commit:
|
|
stage: .pre
|
|
image: unbound/pre-commit:v0.2.0@sha256:488b09d12915250e7ffdfdff88d26023903ea337e8d02a4e5f2cc94969f8ff9f
|
|
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
|