Commit d48deae5 by 文帅营

ci: 更新docker配置参数

1 parent 65068e8d
......@@ -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"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!