Automate deploy to server

This commit is contained in:
Joey Hafner 2022-02-10 17:30:27 +00:00
parent 0fc845bfc5
commit df5d4d9240

View File

@ -15,4 +15,5 @@ server-deploy:
only: only:
- "server/" - "server/"
script: script:
- ssh joey@joey-server "cd /home/joey/docker_config && git pull origin master && exit" - 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/"