This commit is contained in:
parent
486decf86a
commit
82526309ac
@ -32,14 +32,14 @@ jobs:
|
|||||||
- name: init ssh
|
- name: init ssh
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.PRIVKEY }}" | base64 -d > ~/.ssh/id_rsa
|
echo "${{ secrets.PRIVKEY2 }}" | base64 -d > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.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
|
- name: upload new files
|
||||||
run: |
|
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
|
- name: fix perms
|
||||||
run: |
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user