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