Fix SSH key variable in deployment workflow for consistency and security
Some checks failed
Deploy Development / deploy (push) Failing after 1m17s

This commit is contained in:
Frank John Begornia
2025-12-16 14:00:23 +08:00
parent 9d0bae2dea
commit 74860f8a0d

View File

@@ -34,12 +34,12 @@ jobs:
mkdir -p ~/.ssh mkdir -p ~/.ssh
chmod 700 ~/.ssh chmod 700 ~/.ssh
echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_ed25519 echo "${DEPLOY_SSH_KEY}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H ${DEPLOY_HOST} >> ~/.ssh/known_hosts ssh-keyscan -H ${DEPLOY_HOST} >> ~/.ssh/known_hosts
env: env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
- name: Deploy to Server - name: Deploy to Server