modify workflow to use alternative directory
Some checks failed
pipeline / deploy-job (push) Failing after 31s

This commit is contained in:
fzorb 2024-10-09 22:13:46 +03:00
parent 6686666e01
commit 56dd94d2c7

View File

@ -38,12 +38,12 @@ jobs:
- name: delete new files so we don't screw up stuff
run: |
ssh -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "rm -rf /var/www/fzorb.xyz/*"
ssh -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "rm -rf /srv/swag/config/www/fzorb.xyz/*"
- name: upload new files
run: |
rsync -avzh website/public/ -e "ssh -i ~/.ssh/id_rsa -p 69" gitlab@107.189.28.28:/var/www/fzorb.xyz
rsync -avzh website/public/ -e "ssh -i ~/.ssh/id_rsa -p 69" gitlab@107.189.28.28:/srv/swag/config/www/fzorb.xyz
- name: fix perms
run: |
ssh -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "chmod 755 -R /var/www/fzorb.xyz"
ssh -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "chmod 755 -R /srv/swag/config/www/fzorb.xyz"