fix(ci): Web构建传NGINX_CONF使用staging nginx配置 #380
Reference in New Issue
Block a user
Delete Branch "fix/staging-web-nginx-conf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
Web镜像构建时未传NGINX_CONF build arg,Dockerfile默认使用production配置(proxy_pass到xiaoxia-api-production),导致Staging环境Web容器nginx启动失败:
修复
在ci-build.yml的staging构建步骤中,判断matrix.service为web时,额外传入NGINX_CONF=infra/docker/nginx-staging.conf,使Web镜像使用staging配置(proxy_pass到xiaoxia-api-staging)。