Skip to content

Commit 88b28a6

Browse files
committed
vault_connexion : add a action to connect to vps
1 parent 84929b4 commit 88b28a6

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/vault_connexion.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@ jobs:
2222
jwtGithubAudience: ${{ secrets.JWT_GIT_AUDIENCE }}
2323
secrets: |
2424
${{ secrets.VAULT_VPS_SSH_SERVER_IP }} | VPS_SERVER_IP
25-
${{ secrets.VAULT_VPS_SSH_SERVER_PASS }} | VPS_SSH_SERVER_PASS
26-
${{ secrets.VAULT_SSH_PRIVATE_KEY }} | SSH_PRIVATE_KEY
25+
- name: Connect VPS
26+
uses: garygrossgarten/github-action-ssh@release
27+
with:
28+
command: sh update_chatbot.sh
29+
host: ${{ secrets.SERVER_IP }}
30+
username: debian
31+
passphrase: ${{ secrets.SSH_PASS }}
32+
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)