Disabler server-deploy during refactor

This commit is contained in:
Joey Hafner 2022-02-25 18:25:37 +00:00
parent b31fb6122e
commit c96628f0d1

View File

@ -13,14 +13,14 @@ before_script:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
server-deploy:
stage: deploy
when: always
rules:
- changes:
- server/
when: manual
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/"
- ssh joey@joey-server "rm -rf server/"
#server-deploy:
# stage: deploy
# when: always
# rules:
# - changes:
# - server/
# when: manual
# 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/"
# - ssh joey@joey-server "rm -rf server/"