From 706c2c5052c03d2bf7070d4b6460efcee8a2592c Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 11 Oct 2022 22:55:12 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be2eeff..a2b0fdb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,7 +60,10 @@ deploy-job: # This job runs in the deploy stage. - |+ for file in $files do - cp "$file" "/var/cache/bind/$file" + if [[ "$file" =~ .*"zone".* ]] + then + cp "$file" "/var/cache/bind/$file" + fi done sudo systemctl reload bind9.service - echo "Déploiement terminé."