Compare commits
2 Commits
c3771d8602
...
14c677d888
Author | SHA1 | Date | |
---|---|---|---|
14c677d888 | |||
390a78c6fe |
@ -29,13 +29,14 @@ jobs:
|
|||||||
- name: init ssh
|
- name: init ssh
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.PRIVKEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.PRIVKEY }}" | 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 69 107.189.28.28 >> ~/.ssh/known_hosts
|
||||||
|
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||||
|
|
||||||
- name: delete new files so we don't screw up stuff
|
- name: delete new files so we don't screw up stuff
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "rm -rf /var/www/mail.fzorb.xyz/*"
|
ssh -v -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "rm -rf /var/www/mail.fzorb.xyz/*"
|
||||||
|
|
||||||
- name: upload new files
|
- name: upload new files
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user