Merge pull request #1371 from infinitycat233/dev

feat: 更新action修改dev构建策略为每日0点构建 更新 Dockerfile,添加 git 安装步骤以支持插件安装
pull/1374/head
墨梓柒 2025-11-20 00:30:45 +08:00 committed by GitHub
commit 39d86e1a9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -1,11 +1,12 @@
name: Docker Build and Push
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
- classical
- dev
tags:
- "v*.*.*"
- "v*"
@ -24,6 +25,7 @@ jobs:
- name: Check out git repository
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }}
fetch-depth: 0
# Clone required dependencies
@ -77,6 +79,7 @@ jobs:
- name: Check out git repository
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }}
fetch-depth: 0
# Clone required dependencies

View File

@ -25,6 +25,8 @@ WORKDIR /MaiMBot
# 复制依赖列表
COPY requirements.txt .
RUN apt-get update && apt-get install -y git
# 从编译阶段复制 LPMM 编译结果
COPY --from=lpmm-builder /usr/local/lib/python3.13/site-packages/ /usr/local/lib/python3.13/site-packages/