Browse Source

Update ssh_deploy.yml

dev_h
Ophir LOJKINE 3 years ago
parent
commit
6db652d3c4
1 changed files with 6 additions and 5 deletions
  1. 6
    5
      .github/workflows/ssh_deploy.yml

+ 6
- 5
.github/workflows/ssh_deploy.yml View File

@@ -9,8 +9,9 @@ jobs:
9 9
     name: deploy
10 10
     runs-on: ubuntu-latest
11 11
     steps:
12
-    - name: executing remote ssh
13
-      run: echo "$SSH_PRIVATE_KEY" > pkey && chmod og-rwx pkey && ssh -i pkey -o StrictHostKeyChecking=no "$SSH_SERVER" ./update-wbo.sh
14
-      env:
15
-        SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
16
-        SSH_SERVER: ${{ secrets.SSH_SERVER }}
12
+    - uses: actions/checkout@v2
13
+    - name: Dokku
14
+      uses: dokku/github-action@9c1a871eab9daef563cf08b9602c7675f4a8bb56
15
+      with:
16
+        git_remote_url: ssh://dokku@${{ secrets.SSH_SERVER }}:22/wbo
17
+        ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

Loading…
Cancel
Save