From d6549acc4c9c829ce5ebb820bd2d051f6c8bc1f6 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 6 Feb 2024 20:13:15 +0100 Subject: [PATCH] ci: dont run on renovate updates (#14) Reviewed-on: https://git.mgrote.net/container-images/httpd/pulls/14 Co-authored-by: Michael Grote Co-committed-by: Michael Grote --- .woodpecker/build.yml | 3 +++ .woodpecker/lint.yml | 15 ++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index adb9d04..fa027d1 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -17,3 +17,6 @@ steps: - ${CI_COMMIT_SHA:0:8} - ${CI_COMMIT_BRANCH} - latest + when: + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' + ... diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 4349b04..ceb0c5f 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -5,23 +5,14 @@ steps: commands: - gitleaks detect --no-git --verbose --source $CI_WORKSPACE when: - - evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH' - - evaluate: 'CI_PIPELINE_EVENT == "pr"' - -# when: -# branch: -# include: [master, master] -# exclude: [renovate/*] - + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' hadolint: image: pipelinecomponents/hadolint:0.26.0@sha256:7122937006c7a9bcbb78ce764d3c2f0092f183b843ad128bc9fd6ea918e22d5b commands: - hadolint Dockerfile when: - event: - exclude: - - tag + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' shellcheck: image: "koalaman/shellcheck-alpine:latest@sha256:eed99e46acb69ede0f68db4fd8f1b3b00cc09d66cb7d4d6f1f6296bd8833932d" @@ -33,4 +24,6 @@ steps: shellcheck "$file_path" fi done + when: + - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ...