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"
|
NODES: "192.168.15.160"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: ssh key
|
- uses: webfactory/ssh-agent@v0.9.1
|
||||||
run: |
|
with:
|
||||||
echo "${{ secrets.SSH_MASTER_KEY }}" > ~/.ssh/id_ed25519
|
ssh-private-key: ${{ secrets.SSH_MASTER_KEY }}
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: |
|
run: |
|
||||||
# echo LS1
|
# echo LS1
|
||||||
|
@ -63,8 +62,3 @@ jobs:
|
||||||
ssh root@$NODE systemctl restart node-api
|
ssh root@$NODE systemctl restart node-api
|
||||||
done
|
done
|
||||||
|
|
||||||
# - name: Clean up
|
|
||||||
# run: |
|
|
||||||
# rm -f ~/.ssh/id_ed25519
|
|
||||||
# if: always()
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue