Skip to content

Commit 36ce0c1

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

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/vault_connexion.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,12 @@ jobs:
2323
secrets: |
2424
${{ secrets.VAULT_VPS_SSH_SERVER_IP }} | VPS_SERVER_IP
2525
${{ secrets.VAULT_VPS_SSH_SERVER_PASS }} | VPS_SSH_SERVER_PASS
26-
${{ secrets.VAULT_SSH_PRIVATE_KEY }} | SSH_PRIVATE_KEY
26+
${{ secrets.VAULT_SSH_PRIVATE_KEY }} | SSH_PRIVATE_KEY
27+
- name: Connect VPS
28+
uses: garygrossgarten/github-action-ssh@release
29+
with:
30+
command: sh update_chatbot.sh
31+
host: ${{ secrets.SERVER_IP }}
32+
username: debian
33+
passphrase: ${{ secrets.SSH_PASS }}
34+
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)