From 50821502e49f143052703fdf24a58083c782b06b Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 19 Feb 2023 20:10:34 +0100 Subject: [PATCH] Enable commit linting Signed-off-by: Georg Pfuetzenreuter --- .pipeline.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.pipeline.yml b/.pipeline.yml index 1c2352f..cdbafd4 100644 --- a/.pipeline.yml +++ b/.pipeline.yml @@ -3,7 +3,17 @@ skip_clone: true pipeline: - lint: + commit_lint: + image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline-gommit:latest + secrets: [ci_netrc_username, ci_netrc_password, ci_netrc_machine] + when: + event: [push] + commands: + - git clone --single-branch -b $CI_COMMIT_BRANCH $CI_REPO_LINK ../salt-libertacasa-commit-linting + - cd ../salt-libertacasa-commit-linting + - bin/lint-commits.pl production + + code_lint: image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline-lint:latest secrets: [ci_netrc_username, ci_netrc_password, ci_netrc_machine] when: