Update .gitlab-ci.yml

This commit is contained in:
Joey Hafner 2022-02-10 18:58:15 +00:00
parent d3abb52b8e
commit 54d848cb69

View File

@ -16,9 +16,10 @@ before_script:
server-deploy: server-deploy:
stage: deploy stage: deploy
rules: rules:
- when: manual - changes:
changes:
- server/ - server/
when: manual
script: 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 "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/" - ssh joey@joey-server "cp -r server/config/* ./docker_config/"