test2
Some checks failed
Build and Deploy / deploy (push) Failing after 10s

This commit is contained in:
andy-sg
2026-03-05 19:17:13 +09:00
parent d751ba520f
commit be6b1e6b93

View File

@@ -32,5 +32,8 @@ jobs:
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519 echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H $DEPLOY_HOST >> ~/.ssh/known_hosts 2>/dev/null ssh-keyscan -H $DEPLOY_HOST >> ~/.ssh/known_hosts 2>/dev/null
tar -czf /tmp/dist.tar.gz -C dist .
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "rm -rf /volume1/web/app/*" ssh ${DEPLOY_USER}@${DEPLOY_HOST} "rm -rf /volume1/web/app/*"
scp -r dist/* ${DEPLOY_USER}@${DEPLOY_HOST}:/volume1/web/app/ scp /tmp/dist.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:/volume1/web/app/
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "cd /volume1/web/app && tar -xzf dist.tar.gz && rm dist.tar.gz"