Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
毛树良
/
VVAS-DataCenter-DBWriter
Go to a project
Project
Repository
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f142b64d
authored
Nov 18, 2025
by
文帅营
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ci: 更新docker配置参数
1 parent
9c56f4a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
build/package-docker.sh
build/package-docker.sh
View file @
f142b64
...
...
@@ -60,7 +60,8 @@ replace_vars_in_file() {
# 逐行处理模板文件
while
IFS
=
read
-r line;
do
while
[[
"
$line
"
=
~
$var_pattern
]]
;
do
search_line
=
"
$line
"
while
[[
"
$search_line
"
=
~
$var_pattern
]]
;
do
var_spec
=
"
${
BASH_REMATCH
[1]
}
"
if
[[
"
$var_spec
"
=
~ ^
(
.
*
)
:
(
.
*
)
$
]]
;
then
var_name
=
"
${
BASH_REMATCH
[1]
}
"
...
...
@@ -71,6 +72,7 @@ replace_vars_in_file() {
value
=
"
${
!var_name
:-
""
}
"
fi
line
=
"
${
line
//\
$\
{
$var_spec
\
}
/
$value
}"
search_line
=
"
${
search_line
//\
$\
{
$var_spec
\
}
/PLACEHOLDER}"
done
echo
"
$line
"
done
<
"
$template_file
"
>
"
$output_file
"
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment