fix: use key directly instead of key_path
Deploy to Dev / deploy-dev (push) Failing after 1s
Details
Deploy to Dev / deploy-dev (push) Failing after 1s
Details
This commit is contained in:
parent
cfd891d41b
commit
7a3fff73dd
|
|
@ -9,21 +9,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup SSH Key
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/deploy_key
|
|
||||||
chmod 600 /tmp/deploy_key
|
|
||||||
ssh-keyscan -H ${{ secrets.DEV_HOST }} >> ~/.ssh/known_hosts 2>/dev/null || true
|
|
||||||
echo "SSH key file created at: /tmp/deploy_key"
|
|
||||||
ls -la /tmp/deploy_key
|
|
||||||
|
|
||||||
- name: Deploy to Dev Server
|
- name: Deploy to Dev Server
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
|
env:
|
||||||
|
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.DEV_HOST }}
|
host: ${{ secrets.DEV_HOST }}
|
||||||
username: ${{ secrets.DEV_USER }}
|
username: ${{ secrets.DEV_USER }}
|
||||||
key_path: /tmp/deploy_key
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
script_stop: true
|
||||||
debug: true
|
debug: true
|
||||||
script: |
|
script: |
|
||||||
set -e
|
set -e
|
||||||
|
|
@ -49,7 +43,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.DEV_HOST }}
|
host: ${{ secrets.DEV_HOST }}
|
||||||
username: ${{ secrets.DEV_USER }}
|
username: ${{ secrets.DEV_USER }}
|
||||||
key_path: /tmp/deploy_key
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
script_stop: true
|
||||||
debug: true
|
debug: true
|
||||||
script: |
|
script: |
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue