This commit is contained in:
parent
be1f51d151
commit
b9174a171b
2 changed files with 21 additions and 0 deletions
7
.ci/lint.sh
Normal file
7
.ci/lint.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
for i in $(find . -name "docker-compose.yml" -exec sh -c 'docker-compose -f {} config -q; echo {}:$?' \;); do
|
||||
conf=$(echo $i | cut -d: -f1)
|
||||
return_code=$(echo $i | cut -d: -f2)
|
||||
if [ $return_code -ne "0" ]; then
|
||||
echo $conf return code : $return_code && exit $return_code
|
||||
fi
|
||||
done
|
14
.woodpecker/lint.yml
Normal file
14
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
steps:
|
||||
lint:
|
||||
image: debian:stable-slim
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y curl
|
||||
- curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||
- chmod +x //usr/local/bin/docker-compose
|
||||
- sh .ci/lint.sh
|
||||
when:
|
||||
- event: pull_request
|
||||
repo: gnouseu/plakken
|
||||
- event: push
|
||||
branch: main
|
Loading…
Reference in a new issue