From 8d9eef8c97d5f7a79298ce9e0ceb1a723a5c2df8 Mon Sep 17 00:00:00 2001 From: cheney Date: Thu, 16 Apr 2026 10:55:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20docker=20=E4=B8=8B?= =?UTF-8?q?=E7=9A=84node=20=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-deploy.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build-deploy.yml b/.gitea/workflows/build-deploy.yml index 66dc6de..a0a2fe7 100644 --- a/.gitea/workflows/build-deploy.yml +++ b/.gitea/workflows/build-deploy.yml @@ -11,20 +11,13 @@ on: jobs: build: runs-on: ubuntu-latest - container: - image: node:24-alpine steps: - name: Checkout code uses: actions/checkout@v4 - - name: Check Node.js version - run: node --version - - - name: Install dependencies - run: npm install --registry=https://registry.npmmirror.com - - - name: Build project - run: npm run build + - name: Install dependencies and build + run: | + docker run --rm -v "${PWD}:/app" -w /app node:24-alpine sh -c "npm install --registry=https://registry.npmmirror.com && npm run build" - name: Deploy to server uses: appleboy/scp-action@v0.1.7