CI: Put pre-commit cache under CI_PROJECT_DIR (#11929)

* CI: Put pre-commit cache under CI_PROJECT_DIR

Apparently gitlab-runner can't cache stuff outside of the project
directory.

Put the cache under CI_PROJECT_DIR to make it work (which also means we
need to ignore it from ansible-lint).

Also update the pre-commit image while we're at it.

Link: https://gitlab.com/gitlab-org/gitlab/-/issues/14151

* update ansible-lint pre-commit
This commit is contained in:
Max Gautier
2025-03-03 10:30:58 +01:00
committed by GitHub
parent 7590d95976
commit a665b43854
3 changed files with 7 additions and 5 deletions

View File

@@ -38,5 +38,6 @@ exclude_paths:
- venv
- .github
- .ansible
- .cache
mock_modules:
- gluster.gluster.gluster_volume