docker-services/.ci/lint.sh
Maël Gramain b9174a171b
All checks were successful
ci/woodpecker/manual/lint Pipeline was successful
lint
2024-10-20 21:56:46 +02:00

7 lines
No EOL
301 B
Bash

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