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