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

This commit is contained in:
andy-sg
2026-03-05 19:28:39 +09:00
parent 96058d3d96
commit 96fcc278e4

View File

@@ -22,6 +22,16 @@ jobs:
- name: Build - name: Build
run: npm run build run: npm run build
- name: Debug
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
run: |
echo "HOST: [$DEPLOY_HOST]"
echo "USER: [$DEPLOY_USER]"
echo "HOST length: ${#DEPLOY_HOST}"
echo "USER length: ${#DEPLOY_USER}"
- name: Deploy to Synology - name: Deploy to Synology
env: env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
@@ -33,8 +43,7 @@ jobs:
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
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "mkdir -p /volume1/web/app" ssh ${DEPLOY_USER}@${DEPLOY_HOST} "mkdir -p /volume1/web/app && ls -la /volume1/web/app/"
tar -czf /tmp/dist.tar.gz -C dist . tar -czf /tmp/dist.tar.gz -C dist .
scp /tmp/dist.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:/volume1/web/app/ scp /tmp/dist.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:/volume1/web/app/dist.tar.gz
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "cd /volume1/web/app && tar -xzf dist.tar.gz && rm dist.tar.gz" ssh ${DEPLOY_USER}@${DEPLOY_HOST} "cd /volume1/web/app && tar -xzf dist.tar.gz && rm dist.tar.gz"