addci: add shellcheck
This commit is contained in:
parent
acf725033f
commit
4f3993539d
1 changed files with 18 additions and 0 deletions
|
@ -8,6 +8,7 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
hadolint:
|
||||
image: pipelinecomponents/hadolint:0.26.0@sha256:7122937006c7a9bcbb78ce764d3c2f0092f183b843ad128bc9fd6ea918e22d5b
|
||||
commands:
|
||||
|
@ -16,3 +17,20 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
shellcheck:
|
||||
image: registry.mgrote.net/allzweckcontainer
|
||||
commands:
|
||||
- |
|
||||
if find . -type f -not -path '/.git/' -exec file {} ; | grep -q "shell script"; then
|
||||
find . -type f -not -path '/.git/' -exec file {} ; | grep "shell script" | awk -F':' '{print $1}' | xargs -n1 shellcheck || echo "hallo"
|
||||
exit 1
|
||||
else
|
||||
echo "No files specified."
|
||||
exit 0
|
||||
fi
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue