update workflow and add ssh keys support
This commit is contained in:
parent
f3a8a8d757
commit
3947df9fbb
6 changed files with 69 additions and 12 deletions
|
|
@ -12,4 +12,15 @@ jobs:
|
|||
steps:
|
||||
- name: Deploy on WebApps
|
||||
run: |
|
||||
sudo /usr/local/bin/deploy-gameservers-control
|
||||
apt-get update
|
||||
apt-get install -y openssh-client
|
||||
|
||||
mkdir -p ~/.ssh
|
||||
cp /keys/forgejo-runner ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
ssh -o StrictHostKeyChecking=no \
|
||||
-i ~/.ssh/id_ed25519 \
|
||||
-p 2911 \
|
||||
shinuwa@192.168.0.100 \
|
||||
"sudo /usr/local/bin/deploy-gameservers-control"
|
||||
Loading…
Add table
Add a link
Reference in a new issue