Merge pull request #12 from wwaaafa/main

添加docker镜像arm64支持
This commit is contained in:
SengokuCola
2025-03-01 10:32:36 +08:00
committed by GitHub
2 changed files with 14 additions and 9 deletions

View File

@@ -6,6 +6,7 @@ on:
- main # 推送到main分支时触发 - main # 推送到main分支时触发
tags: tags:
- 'v*' # 推送v开头的tag时触发例如v1.0.0 - 'v*' # 推送v开头的tag时触发例如v1.0.0
workflow_dispatch: # 允许手动触发
jobs: jobs:
build-and-push: build-and-push:
@@ -14,6 +15,9 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@@ -25,6 +29,7 @@ jobs:
with: with:
context: . # Docker构建上下文路径 context: . # Docker构建上下文路径
file: ./Dockerfile # Dockerfile路径 file: ./Dockerfile # Dockerfile路径
platforms: linux/amd64,linux/arm64 # 支持arm架构
tags: | tags: |
${{ secrets.DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }} ${{ secrets.DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }}
${{ secrets.DOCKERHUB_USERNAME }}/maimbot:latest ${{ secrets.DOCKERHUB_USERNAME }}/maimbot:latest

View File

@@ -11,9 +11,9 @@ qq = #填入你的机器人QQ
nickname = "麦麦" nickname = "麦麦"
[message] [message]
min_text_length = 2 min_text_length = 2 # 与麦麦聊天时麦麦只会回答文本大于等于此数的消息
max_context_size = 15 max_context_size = 15 # 麦麦获得的上下文数量,超出数量后自动丢弃
emoji_chance = 0.2 emoji_chance = 0.2 # 麦麦使用表情包的概率
[emoji] [emoji]
check_interval = 120 check_interval = 120
@@ -24,13 +24,13 @@ enable_pic_translate = true
[response] [response]
api_using = "siliconflow" api_using = "siliconflow" # 选择大模型API
model_r1_probability = 0.8 model_r1_probability = 0.8 # 麦麦回答时选择R1模型的概率
model_v3_probability = 0.1 model_v3_probability = 0.1 # 麦麦回答时选择V3模型的概率
model_r1_distill_probability = 0.1 model_r1_distill_probability = 0.1 # 麦麦回答时选择R1蒸馏模型的概率
[others] [others]
enable_advance_output = false enable_advance_output = false # 开启后输出更多日志,false关闭true开启
[groups] [groups]