Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:新增制品库相关配置文件模板 #5830 #5879

Merged
merged 1 commit into from
Dec 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scripts/bk-ci-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,15 @@ setup_ci_gateway (){
else
echo "$CTRL_DIR/bin/reg_consul_svc is not executable, skip register domain: bk-ci.service.consul."
fi
if ! grep -w repo $CTRL_DIR/install.config|grep -v ^\# ; then
> $BK_CI_SRC_DIR/support-files/templates/gateway\#core\#vhosts\#devops.bkrepo.upstream.conf
else
cat > $BK_CI_SRC_DIR/support-files/templates/gateway\#core\#vhosts\#devops.bkrepo.upstream.conf << EOF
upstream __BK_REPO_HOST__ {
server __BK_REPO_GATEWAY_IP__;
}
EOF
fi
# 渲染gateway配置及frontend页面.
render_ci "$MS_NAME" || return $?
}
Expand Down