From 61684f67494094a1c35bf0988aea473d6e1e8e62 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 26 Feb 2022 02:47:08 +0000 Subject: [PATCH] Implement deploy jobs for all IaC hosts --- homelab/.gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/homelab/.gitlab-ci.yml b/homelab/.gitlab-ci.yml index 35401ecf..e74846a8 100644 --- a/homelab/.gitlab-ci.yml +++ b/homelab/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: + - test - deploy before_script: @@ -11,6 +12,7 @@ before_script: - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + server-deploy: stage: deploy @@ -21,3 +23,23 @@ server-deploy: when: manual script: - ssh joey@joey-server "cd /home/joey/homelab && git pull" + +seedbox-deploy: + stage: deploy + when: always + rules: + - changes: + - seedbox/ + when: manual + script: + - ssh joey@joey-seedbox "cd /home/joey/homelab && git pull" + +jafner-tools-deploy: + stage: deploy + when: always + rules: + - changes: + - jafner-tools/ + when: manual + script: + - ssh root@jafner.tools "cd /root/homelab && git pull" \ No newline at end of file