Actualiser .forgejo/workflows/ci.yaml
This commit is contained in:
parent
dd3667f6d2
commit
1e2ff6d69d
|
@ -11,17 +11,20 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }} dns
|
||||
echo "Cloned sucessfully from ${{ gitea.server_url }}/${{ gitea.repository }}"
|
||||
- name: Test files
|
||||
shell: bash
|
||||
run: |
|
||||
cd dns
|
||||
files=$(git diff-tree --no-commit-id --name-only -r main | grep "*.zone")
|
||||
echo "Have to test $files"
|
||||
for file in $files
|
||||
do
|
||||
domain=$(echo $file | sed "s/.zone//g")
|
||||
/usr/sbin/named-checkzone "$domain" "$file" || exit 2 && echo "Error on file $file"
|
||||
/usr/sbin/named-checkzone "$domain" "$file" || echo "Error on file $file" && exit 2
|
||||
done
|
||||
echo $(git diff-tree --no-commit-id --name-only -r main | grep "*.zone") > /var/cache/bind/.modified
|
||||
echo "Tested sucessfully"
|
||||
|
||||
sync:
|
||||
runs-on: linux_amd64
|
||||
|
|
Loading…
Reference in New Issue