Skip to content

Commit

Permalink
Merge pull request #5879 from fighter-liu/issue-5830
Browse files Browse the repository at this point in the history
feat:新增制品库相关配置文件模板 #5830
  • Loading branch information
irwinsun authored Dec 24, 2021
2 parents a1efcd8 + 7b7e813 commit 9e14ffe
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 9e14ffe

Please sign in to comment.