From 37fd063c0530e4453a8d74fce7ea29e38d0ceece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Berthaud-M=C3=BCller?= Date: Fri, 30 Jul 2021 11:03:48 +0200 Subject: [PATCH] add stages --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9cb2fc7..8a994b0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,12 @@ before_script: - echo "$SSH_KNOWN_HOSTS" >> $HOME/.ssh/known_hosts - chmod 644 $HOME/.ssh/known_hosts +stages: +- build +- deploy + build: + stage: build script: - | for zonefile in zones/*; do @@ -22,6 +27,7 @@ build: done deploy: + stage: deploy script: - scp -r zones catalog-zones ${SSH_PRIMARY_NS}:/var/lib/knot/ - ssh ${SSH_PRIMARY_NS} 'chown -R knot:knot /var/lib/knot/{zones,catalog-zones} && knotc reload'