Fix SSH command to accept new host keys during deployment

This commit is contained in:
2026-02-05 00:11:43 -06:00
parent b3c1e58fcf
commit 8ebaf88f0c

View File

@@ -63,7 +63,7 @@ jobs:
run: |
eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.DEV_SERVER_SSH_KEY }}")
ssh -o StrictHostKeyChecking=yes \
ssh -o StrictHostKeyChecking=accept-new \
${{ secrets.DEV_SERVER_USER }}@${{ secrets.DEV_SERVER_HOST }} \
'cd /opt/anexo76 && \
echo '"'"'${{ secrets.HARBOR_PASSWORD }}'"'"' | docker login dev.aduanasoft.com -u '"'"'${{ secrets.HARBOR_USERNAME }}'"'"' --password-stdin && \