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: pipeline:
Build: Build:
image: devheroes.codes/serene/ci:10 image: lxsameer/serene_ci:13
commands: commands:
# Uncomment this when running with a new toolchain for the # Uncomment this when running with a new toolchain for the
# first time to save up space # first time to save up space

View File

@ -8,8 +8,9 @@ clone:
pipeline: pipeline:
Linters: Linters:
image: devheroes.codes/serene/ci:10 image: lxsameer/serene_ci:13
commands: commands:
- export SERENE_CI=true
- ./builder setup - ./builder setup
- export FILES="$(git diff --name-only HEAD HEAD~1)" - export FILES="$(git diff --name-only HEAD HEAD~1)"
- pre-commit run --files "$FILES" - 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 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 if command -v python3 >/dev/null 2>&1; then
pip install pre-commit pip install "$args" pre-commit
pre-commit install pre-commit install
else else
error "Python is required to setup pre-commit" error "Python is required to setup pre-commit"