690417:1707 Refactor Work flow ADR-021
CI / CD Pipeline / build (push) Failing after 8m55s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-04-17 17:07:41 +07:00
parent d7e48448e0
commit 5e4e0444ed
13 changed files with 13 additions and 1 deletions
+13 -1
View File
@@ -14,8 +14,20 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: 📥 Checkout
- name: 📥 Checkout (HTTPS)
uses: actions/checkout@v4
continue-on-error: true
- name: 📥 Checkout (SSH fallback)
if: failure()
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p 2222 git.np-dms.work >> ~/.ssh/known_hosts
git clone ssh://git@git.np-dms.work:2222/np-dms/lcbp3.git .
git fetch origin main
git reset --hard origin/main
# ── [1] pnpm ต้องมาก่อน setup-node เสมอ ────────────────
- name: ⚙️ Install pnpm