This commit is contained in:
shanshanzhong 2025-09-25 02:17:57 -07:00
parent c6f47e0e10
commit 849a7219df

View File

@ -1,4 +1,4 @@
name: 发布 Web1 镜像
name: 发布 Web 镜像
run-name: 构建并发布 Web Docker 镜像
on:
@ -11,7 +11,8 @@ on:
- "packages/**"
- "package.json"
- "turbo.json"
- ".gitea/workflows/*.yml"
- ".gitea/workflows/docker.yml"
- "docker/**/Dockerfile"
pull_request:
types: [opened, synchronize, reopened]
paths:
@ -19,7 +20,8 @@ on:
- "packages/**"
- "package.json"
- "turbo.json"
- ".gitea/workflows/*.yml"
- ".gitea/workflows/docker.yml"
- "docker/**/Dockerfile"
env:
REGISTRY_URL: registry.kxsw.us
@ -31,25 +33,21 @@ jobs:
name: 发布 Web 镜像
runs-on: ppanel-web
steps:
- name: 检查依赖工具
run: |
if ! command -v jq &> /dev/null
then
echo "jq could not be found, please install it on the runner."
exit 1
fi
- name: 检出代码
uses: actions/checkout@v4
- name: 设置 Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: 缓存 Bun 依赖
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: 从 package.json 提取版本
id: version
run: echo "VERSION=$(jq -r .version package.json)" >> $GITEA_OUTPUT
- name: 设置 QEMU
uses: docker/setup-qemu-action@v3