FAQ | This is a LIVE service | Changelog

Skip to content
Commits on Source (2)
......@@ -5,7 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.1.0] - 2024-10-25
## [5.2.0] - 2024-10-21
### Changed
- `auto-devops/pre-commit.yml` now defaults to using pre-commit version 4. The
version used can be influenced per-pipeline by setting the new
`PRE_COMMIT_IMAGE_...` variables.
## [5.1.0] - 2024-10-15
### Added
......
......@@ -4,6 +4,9 @@
# job only runs if a `.pre-commit-config.yaml` file is present. The pre-commit job may be disabled by setting the
# `PRE_COMMIT_DISABLED` variable to any non-empty value.
#
# The PRE_COMMIT_IMAGE_NAME and PRE_COMMIT_IMAGE_TAG variables may be used to override the image and version of
# pre-commit used.
#
# This template is intended to be "include"-d from CI configurations. An example of how to include this template:
#
# include:
......@@ -11,11 +14,15 @@
# file: '/auto-devops/pre-commit.yml'
# ref: v2.1.2
variables:
PRE_COMMIT_IMAGE_NAME: registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/pre-commit
PRE_COMMIT_IMAGE_TAG: "4"
.pre-commit:
services:
- docker:24-dind
image: registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/pre-commit:3.3
image: "$PRE_COMMIT_IMAGE_NAME:$PRE_COMMIT_IMAGE_TAG"
before_script:
- until docker info > /dev/null 2>&1; do sleep 1; done
......