change ssh key managment system
This commit is contained in:
@@ -23,12 +23,10 @@ jobs:
|
|||||||
- name: Build project
|
- name: Build project
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Setup SSH key
|
- name: Install SSH key
|
||||||
run: |
|
uses: webfactory/ssh-agent@v0.9.0
|
||||||
mkdir -p ~/.ssh
|
with:
|
||||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
|
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
|
||||||
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- name: Debug SSH key
|
- name: Debug SSH key
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user