mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-10-02 08:22:51 +08:00
Merge branch 'pre-commit-cache' into 'stable-1.7'
Use own pre-commit container with cache See merge request etherlab.org/ethercat!225
This commit is contained in:
+10
-3
@@ -14,10 +14,17 @@ variables:
|
||||
|
||||
pre-commit:
|
||||
stage: lint
|
||||
image: python:3.12
|
||||
image: registry.gitlab.com/etherlab.org/build-container-factory/pre-commit:latest
|
||||
|
||||
before_script:
|
||||
- pip install pre-commit
|
||||
variables:
|
||||
PRE_COMMIT_HOME: "${CI_PROJECT_DIR}/.cache/pre-commit"
|
||||
|
||||
cache:
|
||||
key:
|
||||
files:
|
||||
- .pre-commit-config.yaml
|
||||
paths:
|
||||
- .cache/pre-commit
|
||||
|
||||
script:
|
||||
- |
|
||||
|
||||
Reference in New Issue
Block a user