Skip to content

Commit 0c6fb74

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

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/vault_connexion.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@ jobs:
1818
with:
1919
url: ${{ secrets.VAULT_URL }}
2020
method: jwt
21-
role: ${{ secrets.ROLE }}
21+
role: ${{ secrets.VAULT_ROLE }}
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+
${{ secrets.VAULT_VPS_SSH_SERVER_PASS }} | VPS_SSH_PASS
26+
- name: Connect VPS
27+
uses: garygrossgarten/github-action-ssh@release
28+
with:
29+
command: sh update_chatbot.sh
30+
host: ${{ steps.import-secrets.outputs.VPS_SERVER_IP }}
31+
username: debian
32+
passphrase: ${{ steps.import-secrets.outputs.VPS_SSH_PASS }}
33+
privateKey: ${{ steps.import-secrets.outputs.VPS_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)