From 09e16bd43edbd5e40f869b111013a7c840b94087 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sun, 14 May 2023 11:51:51 +0100 Subject: [PATCH] ci: Move to v13 of CI image --- .woodpecker/build.yml | 2 +- .woodpecker/lint.yml | 3 ++- builder | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index c4f68ff..3069e48 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -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 diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 5ab7418..76c3959 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -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" diff --git a/builder b/builder index 9bded27..5bf3f4a 100755 --- a/builder +++ b/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 + 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"