ci: Move to v13 of CI image
This commit is contained in:
parent
b66ed56a01
commit
09e16bd43e
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
6
builder
6
builder
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue