"git@developer.sourcefind.cn:jerrrrry/infinicore.git" did not exist on "beaf1e8c95cb3cf766d7bd08bcab1243e876e3d7"
Unverified Commit ffb14c51 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

新增可选docker的选项

parent 37d13355
......@@ -7,6 +7,15 @@ on:
description: '请输入要编译固件大小 单位(MB)'
required: true
default: '1024'
include_docker:
description: |
是否编译 Docker 插件
required: true
default: 'yes'
type: choice
options:
- 'yes'
- 'no'
jobs:
build:
......@@ -22,7 +31,7 @@ jobs:
- name: Build ImmortalWrt-x86-64-eif
run: |
profiles="${{ github.event.inputs.profile }}"
include_docker="${{ github.event.inputs.include_docker }}"
IFS=',' read -r -a profile_array <<< "$profiles"
for profile in "${profile_array[@]}"; do
......@@ -35,9 +44,18 @@ jobs:
-v "${{ github.workspace }}/x86-64/imm.config:/home/build/immortalwrt/.config" \
-v "${{ github.workspace }}/x86-64/24.10/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \
immortalwrt/imagebuilder:x86-64-openwrt-24.10 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
extra_content="#### 默认带docker"
echo -e "\n $extra_content" >> ${{ github.workspace }}/info.md
else
echo -e "NO docker"
fi
- name: Create GitHub Release Info
uses: softprops/action-gh-release@v2.1.0
......
......@@ -2,4 +2,3 @@
#### 固件地址 `192.168.100.1`
#### 用户名 `root` 密码:无
#### 默认软件包大小 1GB
#### 默认带docker
#!/bin/bash
echo "编译固件大小为: $PROFILE MB"
echo "Include Docker: $INCLUDE_DOCKER"
# 输出调试信息
echo "$(date '+%Y-%m-%d %H:%M:%S') - 开始编译..."
......@@ -22,7 +23,12 @@ PACKAGES="$PACKAGES luci-i18n-passwall-zh-cn"
PACKAGES="$PACKAGES luci-app-openclash"
PACKAGES="$PACKAGES luci-i18n-homeproxy-zh-cn"
PACKAGES="$PACKAGES openssh-sftp-server"
PACKAGES="$PACKAGES luci-i18n-dockerman-zh-cn"
# 判断是否需要编译 Docker 插件
if [ "$INCLUDE_DOCKER" = "yes" ]; then
PACKAGES="$PACKAGES luci-i18n-dockerman-zh-cn"
echo "Adding package: luci-i18n-dockerman-zh-cn"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment