fix: use key directly without file path
Deploy to Dev / deploy-dev (push) Failing after 25s Details

This commit is contained in:
Dev Server 2026-02-12 23:24:32 +03:00
parent c2af4652c0
commit d2d965d0e1
1 changed files with 4 additions and 13 deletions

View File

@ -9,25 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup SSH Key
run: |
mkdir -p /tmp/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/.ssh/deploy_key
chmod 600 /tmp/.ssh/deploy_key
echo "SSH key file created at /tmp/.ssh/deploy_key"
head -1 /tmp/.ssh/deploy_key
tail -1 /tmp/.ssh/deploy_key
wc -l /tmp/.ssh/deploy_key
ssh-keyscan -H ${{ secrets.DEV_HOST }} >> /tmp/.ssh/known_hosts 2>/dev/null || true
- name: Deploy to Dev Server
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }}
key_path: /tmp/.ssh/deploy_key
key: ${{ secrets.SSH_PRIVATE_KEY }}
use_insecure_cipher: true
debug: true
script_stop: true
script: |
set -e
cd /var/www/platform/dev
@ -52,9 +42,10 @@ jobs:
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }}
key_path: /tmp/.ssh/deploy_key
key: ${{ secrets.SSH_PRIVATE_KEY }}
use_insecure_cipher: true
debug: true
script_stop: true
script: |
sleep 10
docker compose ps