ci
This commit is contained in:
parent
b0b58333a4
commit
0fba9eac06
@ -33,6 +33,9 @@ jobs:
|
||||
container:
|
||||
image: node:20-bullseye-slim
|
||||
steps:
|
||||
- name: 安装依赖工具
|
||||
run: apt-get update && apt-get install -y jq git
|
||||
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@ -42,13 +45,12 @@ jobs:
|
||||
bun-version: 'latest'
|
||||
|
||||
- name: 缓存 Bun 依赖
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.bun
|
||||
key: ${{ runner.os }}-bun-cache-${{ hashFiles('**/bun.lockb') }}
|
||||
path: ~/.bun/install/cache
|
||||
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-bun-cache-
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
- name: 安装依赖
|
||||
run: bun install --cache
|
||||
@ -62,13 +64,9 @@ jobs:
|
||||
- name: 设置 Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
|
||||
- name: 安装依赖工具
|
||||
run: apt-get update && apt-get install -y jq git
|
||||
|
||||
- name: 从 package.json 提取版本
|
||||
id: version
|
||||
run: echo "PPANEL_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
|
||||
run: echo "VERSION=$(jq -r .version package.json)" >> $GITEA_OUTPUT
|
||||
|
||||
- name: 构建并推送 ppanel-admin-web Docker 镜像
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user