ci: Move to v13 of CI image

This commit is contained in:
Sameer Rahmani 2023-05-14 11:51:51 +01:00
parent b66ed56a01
commit 09e16bd43e
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
3 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,7 @@ clone:
pipeline:
Build:
image: devheroes.codes/serene/ci:10
image: lxsameer/serene_ci:13
commands:
# Uncomment this when running with a new toolchain for the
# first time to save up space

View File

@ -8,8 +8,9 @@ clone:
pipeline:
Linters:
image: devheroes.codes/serene/ci:10
image: lxsameer/serene_ci:13
commands:
- export SERENE_CI=true
- ./builder setup
- export FILES="$(git diff --name-only HEAD HEAD~1)"
- pre-commit run --files "$FILES"

View File

@ -341,8 +341,12 @@ function create-devfs-image() { ## Create the devfs images locally (requires sud
}
function setup() { ## Setup the working directory and make it ready for development
local args
if [[ "$SERENE_CI" == "true" ]]; then
args=--break-system-packages
fi
if command -v python3 >/dev/null 2>&1; then
pip install pre-commit
pip install "$args" pre-commit
pre-commit install
else
error "Python is required to setup pre-commit"