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 runs-on: ubuntu-latest
steps: 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 - name: Deploy to Dev Server
uses: appleboy/ssh-action@v1.0.0 uses: appleboy/ssh-action@v1.0.0
with: with:
host: ${{ secrets.DEV_HOST }} host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }} username: ${{ secrets.DEV_USER }}
key_path: /tmp/.ssh/deploy_key key: ${{ secrets.SSH_PRIVATE_KEY }}
use_insecure_cipher: true use_insecure_cipher: true
debug: true debug: true
script_stop: true
script: | script: |
set -e set -e
cd /var/www/platform/dev cd /var/www/platform/dev
@ -52,9 +42,10 @@ jobs:
with: with:
host: ${{ secrets.DEV_HOST }} host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }} username: ${{ secrets.DEV_USER }}
key_path: /tmp/.ssh/deploy_key key: ${{ secrets.SSH_PRIVATE_KEY }}
use_insecure_cipher: true use_insecure_cipher: true
debug: true debug: true
script_stop: true
script: | script: |
sleep 10 sleep 10
docker compose ps docker compose ps