From 679a8fb7d47bc8144f032808305fb61074ca1dfc Mon Sep 17 00:00:00 2001 From: wonder Date: Wed, 27 May 2026 13:32:55 +0800 Subject: [PATCH] ci: revert to container with Aliyun Alpine mirror MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit act runner post-step runs in isolated context that can't find node regardless of symlinks. Revert to container approach but switch to Aliyun mirror for faster apk downloads (~2min → ~10s). Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index bccd8f3..a3214a0 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -8,12 +8,12 @@ on: jobs: build-and-deploy: runs-on: aliyun + container: node:22-alpine steps: - - name: Setup PATH + - name: Install tools run: | - ln -sf /root/.nvm/versions/node/*/bin/node /usr/bin/node - ln -sf /root/.nvm/versions/node/*/bin/npm /usr/bin/npm - ln -sf /root/.nvm/versions/node/*/bin/npx /usr/bin/npx + sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories + apk add --no-cache docker-cli git - name: Checkout uses: http://47.121.181.112:3000/wonder/checkout@v4