Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-10-11 22:27:03 +00:00
parent ec2fa70583
commit f150e49fed
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ test-job: # This job runs in the test stage.
if [[ "$files" =~ .*"zone".* ]] if [[ "$files" =~ .*"zone".* ]]
then then
echo "Test des zones $files." echo "Test des zones $files."
for file in $files
do
domain=$(echo $file | sed "s/.zone//g")
/usr/sbin/named-checkzone "$domain" "$file"
done
else else
echo "Pas de fichier de zone à tester" echo "Pas de fichier de zone à tester"
exit 1 exit 1