hopefully move to a new host 🙏
Some checks failed
pipeline / deploy-job (push) Failing after 34s

This commit is contained in:
fzorb 2024-11-30 22:49:11 +02:00
parent 486decf86a
commit 82526309ac

View File

@ -32,14 +32,14 @@ jobs:
- name: init ssh
run: |
mkdir -p ~/.ssh
echo "${{ secrets.PRIVKEY }}" | base64 -d > ~/.ssh/id_rsa
echo "${{ secrets.PRIVKEY2 }}" | base64 -d > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p 69 107.189.28.28 >> ~/.ssh/known_hosts
ssh-keyscan -p 22 10.14.0.205 >> ~/.ssh/known_hosts
- name: upload new files
run: |
rsync -avzh website/public/ -e "ssh -i ~/.ssh/id_rsa -p 69" --omit-dir-times pr@107.189.28.28:/srv/swag/config/www/fzorb.xyz
rsync -avzh website/public/ -e "ssh -i ~/.ssh/id_rsa -p 22" --omit-dir-times git@10.14.0.205:/var/www/fzorb.xyz
- name: fix perms
run: |
ssh -i ~/.ssh/id_rsa -p 69 pr@107.189.28.28 "chmod 755 -R /srv/swag/config/www/fzorb.xyz"
ssh -i ~/.ssh/id_rsa -p 22 git@10.14.0.205 "chmod 755 -R /var/www/fzorb.xyz"