ci(site): web 发版从 ubuntu-latest 迁到 nas runner
pangolin 只注册了一个 runner(mac-pangolin-2, label nas, host 模式); deploy-site.yml 原 runs-on: ubuntu-latest 无对应 runner → site-v* 发版 永久排队,官网/用户中心走 CI 发不出来。 改 runs-on: nas,直接在宿主 Mac 上 host 跑(Mac 自带 node v25/npm)。 内存无忧:Astro 轻,Next.js next build 峰值 ~1-2GB,Mac 足够——刻意不放 内存紧的 pangolin1(960MB)或 NAS-Linux。wrangler pages deploy 需网络 + CF token(CLOUDFLARE_API_TOKEN/ACCOUNT_ID secret 已配)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P9G7E3wmAYL9KeYCVZVsqu
This commit is contained in:
@@ -12,13 +12,15 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-site:
|
deploy-site:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nas
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# runner 镜像 catthehacker/ubuntu:act-latest 自带 node/npx,直接跑;
|
# runs-on: nas(host 模式,mac-pangolin-2 宿主 Mac)。Mac 自带 node/npm/npx,
|
||||||
# 不用嵌套 docker run(job 容器内的 $PWD 在宿主上不存在,DinD 挂载会失败)。
|
# 直接 host 跑 —— 从 ubuntu-latest 迁来:pangolin 无 ubuntu runner,原 job 永久排队。
|
||||||
|
# 内存:Astro 轻(几百 MB)、Next.js next build 峰值 ~1-2GB,Mac 足够(不放内存紧的
|
||||||
|
# pangolin1/NAS-Linux)。wrangler pages deploy 需网络 + CF token(已配 secret)。
|
||||||
- name: Compile (Astro 官网)
|
- name: Compile (Astro 官网)
|
||||||
env:
|
env:
|
||||||
SITE_URL: https://pangolin.yanmeiai.com
|
SITE_URL: https://pangolin.yanmeiai.com
|
||||||
|
|||||||
Reference in New Issue
Block a user