From 34965076ad826f405da6e30438aec87d3413c7c0 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 10 Feb 2022 18:54:15 +0000 Subject: [PATCH] Refactor rules --- homelab/.gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homelab/.gitlab-ci.yml b/homelab/.gitlab-ci.yml index 6b407692..87cd23e1 100644 --- a/homelab/.gitlab-ci.yml +++ b/homelab/.gitlab-ci.yml @@ -15,7 +15,9 @@ before_script: server-deploy: stage: deploy - when: manual + rules: + - when: manual + only: server/ script: - ssh joey@joey-server "cd /home/joey && git archive --remote=ssh://git@gitlab.jafner.net:2229/Jafner/homelab.git main server/ | tar xvf -" - ssh joey@joey-server "cp -r server/config/* ./docker_config/"