Till tring with GH Actions
This commit is contained in:
parent
2eba8cd0e0
commit
9153b01cb5
|
@ -13,9 +13,13 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up SSH key
|
||||
uses: actions/ssh-auth@v1
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
|
||||
|
||||
- name: Adding Known Hosts
|
||||
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Copy code to server
|
||||
run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SERVER_SSH_PORT }} ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }} "cd /home/bravo68web/projects/b68/ && git pull"
|
||||
|
|
Loading…
Reference in New Issue