Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
ffb14c51
"git@developer.sourcefind.cn:jerrrrry/infinicore.git" did not exist on "beaf1e8c95cb3cf766d7bd08bcab1243e876e3d7"
Unverified
Commit
ffb14c51
authored
Jan 03, 2025
by
wukongdaily
Committed by
GitHub
Jan 03, 2025
Browse files
新增可选docker的选项
parent
37d13355
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
.github/workflows/build-x86-64-24.10.yml
.github/workflows/build-x86-64-24.10.yml
+19
-1
info.md
info.md
+0
-1
x86-64/24.10/build.sh
x86-64/24.10/build.sh
+7
-1
No files found.
.github/workflows/build-x86-64-24.10.yml
View file @
ffb14c51
...
...
@@ -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
...
...
info.md
View file @
ffb14c51
...
...
@@ -2,4 +2,3 @@
#### 固件地址 `192.168.100.1`
#### 用户名 `root` 密码:无
#### 默认软件包大小 1GB
#### 默认带docker
x86-64/24.10/build.sh
View file @
ffb14c51
#!/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:"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment