diff --git a/ci/checkformat.gitlab-ci.yml b/ci/checkformat.gitlab-ci.yml index abf979d89..d8547d97f 100644 --- a/ci/checkformat.gitlab-ci.yml +++ b/ci/checkformat.gitlab-ci.yml @@ -1,12 +1,10 @@ checkformat:clangformat: stage: checkformat - image: ubuntu:latest + image: alpine:3.19 only: - merge_requests allow_failure: true before_script: - - export DEBIAN_FRONTEND=noninteractive - - apt-get update -y - - apt-get install -y --no-install-recommends git clang-format clang-format-17 + - apk add --no-cache git clang17-extra-tools python3 script: - - git clang-format-17 --diff --commit ${CI_MERGE_REQUEST_DIFF_BASE_SHA} + - git clang-format --diff --commit ${CI_MERGE_REQUEST_DIFF_BASE_SHA}