CE-4057: Set up pre-commit image with JDK
To be able to get rid of custom overrides on https://gitlab.esss.lu.se/ics-infrastructure/gitlab-ci-yml/raw/master/PreCommit.gitlab-ci.yml like
run-pre-commit:
image: ubuntu:latest
before_script:
- apt-get update -y && apt-get install -y openjdk-21-jdk python3-venv git
- python3 -m venv venv
- source venv/bin/activate
- pip3 install pre-commit
- git config --global --add safe.directory $CI_PROJECT_DIR
Which will improve pipeline speed.
Edited by Anders Lindh Olsson