use password based auth which doesn't really matter since this is a private thing
Some checks failed
pipeline / deploy-job (push) Failing after 30s

This commit is contained in:
fzorb 2024-11-30 23:00:44 +02:00
parent 82526309ac
commit 0dc7e22726

View File

@ -12,7 +12,7 @@ jobs:
- name: init env - name: init env
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y rsync openssh-client hugo git sudo apt-get install -y rsync openssh-client hugo git sshpass
- name: init git - name: init git
run: | run: |
@ -31,15 +31,12 @@ jobs:
- name: init ssh - name: init ssh
run: | run: |
mkdir -p ~/.ssh
echo "${{ secrets.PRIVKEY2 }}" | base64 -d > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p 22 10.14.0.205 >> ~/.ssh/known_hosts ssh-keyscan -p 22 10.14.0.205 >> ~/.ssh/known_hosts
- name: upload new files - name: upload new files
run: | run: |
rsync -avzh website/public/ -e "ssh -i ~/.ssh/id_rsa -p 22" --omit-dir-times git@10.14.0.205:/var/www/fzorb.xyz rsync -avzh website/public/ -e "sshpass -p ${{secrets.PASSWD}}" --omit-dir-times git@10.14.0.205:/var/www/fzorb.xyz
- name: fix perms - name: fix perms
run: | run: |
ssh -i ~/.ssh/id_rsa -p 22 git@10.14.0.205 "chmod 755 -R /var/www/fzorb.xyz" sshpass -p ${{secrets.PASSWD}} git@10.14.0.205 "chmod 755 -R /var/www/fzorb.xyz"