更新说明,构建服务端时,支持传入docker hub用户名

This commit is contained in:
yhl452493373
2025-11-22 00:31:08 +08:00
parent 33c7cb2475
commit 35ee9e119e
3 changed files with 16 additions and 3 deletions

View File

@@ -66,7 +66,13 @@ jobs:
- name: 构建 Docker 镜像
run: |
# 运行构建脚本
./build-server.sh
if [ -n "${{ secrets.DOCKERHUB_USERNAME }}" ]; then
echo "使用 secrets 中的 Docker Hub 用户名"
./build-server.sh "${{ secrets.DOCKERHUB_USERNAME }}"
else
echo "使用默认 Docker Hub 用户名"
./build-server.sh
fi
- name: 获取镜像标签
id: exist-tag