Revert to ssh-agent
This commit is contained in:
parent
62bc275b40
commit
29a9594ddb
1 changed files with 3 additions and 9 deletions
|
@ -41,10 +41,9 @@ jobs:
|
|||
NODES: "192.168.15.160"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: ssh key
|
||||
run: |
|
||||
echo "${{ secrets.SSH_MASTER_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
- uses: webfactory/ssh-agent@v0.9.1
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_MASTER_KEY }}
|
||||
- name: deploy
|
||||
run: |
|
||||
# echo LS1
|
||||
|
@ -63,8 +62,3 @@ jobs:
|
|||
ssh root@$NODE systemctl restart node-api
|
||||
done
|
||||
|
||||
# - name: Clean up
|
||||
# run: |
|
||||
# rm -f ~/.ssh/id_ed25519
|
||||
# if: always()
|
||||
|
||||
|
|
Loading…
Reference in a new issue