From 24ce431ae0fecb40f3badf846dd1e9fb8ee0a788 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 20 Aug 2024 18:00:55 +0200 Subject: [PATCH] .forgejo/workflows/ci.yaml: correcting error --- .forgejo/workflows/ci.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index ef76f83..0cda9cf 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -15,6 +15,7 @@ jobs: git clone ${{ gitea.server_url }}/${{ gitea.repository }} dns cd dns git diff HEAD^ HEAD > zone_diff.txt + echo "${{ secrets.TSIG_KEY }}" > temp_keyfile while IFS= read -r line; do case "$line" in "--- "*".zone") @@ -33,16 +34,17 @@ jobs: RECORD=$(echo "$line" | sed 's/^-//') echo "update delete $RECORD" echo -e "server $DNS_SERVER\nupdate delete $RECORD\nsend" > temp_delete - nsupdate -k "${{ secrets.TSIG_KEY }}" temp_delete + nsupdate -k temp_keyfile temp_delete rm temp_delete elif [[ $line == +* ]]; then # Enregistrement ajouté RECORD=$(echo "$line" | sed 's/^+//') echo "+ $RECORD" echo -e "server $DNS_SERVER\nupdate add $RECORD\nsend" > temp_add - nsupdate -k "${{ secrets.TSIG_KEY }}" temp_add + nsupdate -k temp_keyfile temp_add rm temp_add fi fi ;; esac - done < zone_diff.txt \ No newline at end of file + done < zone_diff.txt + rm temp_keyfile \ No newline at end of file