ci: fix when
This commit is contained in:
parent
c79f64db00
commit
d3748a9e84
2 changed files with 11 additions and 4 deletions
|
@ -28,6 +28,9 @@ steps:
|
||||||
- |
|
- |
|
||||||
DATE=$(date --iso-8601=seconds)
|
DATE=$(date --iso-8601=seconds)
|
||||||
echo "DATE=$DATE" >> .variables
|
echo "DATE=$DATE" >> .variables
|
||||||
|
when:
|
||||||
|
- event: [push, pull_request]
|
||||||
|
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
|
|
||||||
build_and_push: # damit dieser Step laufen kann muss das Repo in der Woodpecker-GUI "privilegiert" sein
|
build_and_push: # damit dieser Step laufen kann muss das Repo in der Woodpecker-GUI "privilegiert" sein
|
||||||
image: "docker:26.1.1"
|
image: "docker:26.1.1"
|
||||||
|
@ -53,5 +56,6 @@ steps:
|
||||||
--label org.opencontainers.image.created=$DATE \
|
--label org.opencontainers.image.created=$DATE \
|
||||||
--file Dockerfile .
|
--file Dockerfile .
|
||||||
when:
|
when:
|
||||||
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
- event: [push, pull_request]
|
||||||
|
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
...
|
...
|
||||||
|
|
|
@ -5,14 +5,16 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
|
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
|
||||||
when:
|
when:
|
||||||
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
- event: [push, pull_request]
|
||||||
|
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
|
|
||||||
hadolint:
|
hadolint:
|
||||||
image: pipelinecomponents/hadolint:0.26.1
|
image: pipelinecomponents/hadolint:0.26.1
|
||||||
commands:
|
commands:
|
||||||
- hadolint Dockerfile
|
- hadolint Dockerfile
|
||||||
when:
|
when:
|
||||||
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
- event: [push, pull_request]
|
||||||
|
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
image: "koalaman/shellcheck-alpine:v0.10.0"
|
image: "koalaman/shellcheck-alpine:v0.10.0"
|
||||||
|
@ -25,5 +27,6 @@ steps:
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
when:
|
when:
|
||||||
- evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
- event: [push, pull_request]
|
||||||
|
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue