ci: dont run on renovate updates (#14)
Reviewed-on: #14 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
92dc8d7fdf
commit
d6549acc4c
2 changed files with 7 additions and 11 deletions
|
@ -17,3 +17,6 @@ steps:
|
||||||
- ${CI_COMMIT_SHA:0:8}
|
- ${CI_COMMIT_SHA:0:8}
|
||||||
- ${CI_COMMIT_BRANCH}
|
- ${CI_COMMIT_BRANCH}
|
||||||
- latest
|
- latest
|
||||||
|
when:
|
||||||
|
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
|
...
|
||||||
|
|
|
@ -5,23 +5,14 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
|
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
|
||||||
when:
|
when:
|
||||||
- evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
|
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
- evaluate: 'CI_PIPELINE_EVENT == "pr"'
|
|
||||||
|
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# include: [master, master]
|
|
||||||
# exclude: [renovate/*]
|
|
||||||
|
|
||||||
|
|
||||||
hadolint:
|
hadolint:
|
||||||
image: pipelinecomponents/hadolint:0.26.0@sha256:7122937006c7a9bcbb78ce764d3c2f0092f183b843ad128bc9fd6ea918e22d5b
|
image: pipelinecomponents/hadolint:0.26.0@sha256:7122937006c7a9bcbb78ce764d3c2f0092f183b843ad128bc9fd6ea918e22d5b
|
||||||
commands:
|
commands:
|
||||||
- hadolint Dockerfile
|
- hadolint Dockerfile
|
||||||
when:
|
when:
|
||||||
event:
|
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
image: "koalaman/shellcheck-alpine:latest@sha256:eed99e46acb69ede0f68db4fd8f1b3b00cc09d66cb7d4d6f1f6296bd8833932d"
|
image: "koalaman/shellcheck-alpine:latest@sha256:eed99e46acb69ede0f68db4fd8f1b3b00cc09d66cb7d4d6f1f6296bd8833932d"
|
||||||
|
@ -33,4 +24,6 @@ steps:
|
||||||
shellcheck "$file_path"
|
shellcheck "$file_path"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
when:
|
||||||
|
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue