该项目可用于jenkins的多分支流水线和gitlab的docker executor流水线
修改Jenkinsfile,改成 apollo-proxy 部署后的地址
environment {
APOLLO_FAT = "http://admin:[email protected]:9999/fat"
APOLLO_PROD = "http://admin:[email protected]:9999/prod"
}
然后创建一个多分支流水线,点构建即可
test分支会读取APOLLO_FAT下的配置
master分支会读取APOLLO_PROD下的配置
修改.gitlab-ci.ymml,改成 apollo-proxy 部署后的地址
variables:
APOLLO_FAT: "http://admin:[email protected]:9999/fat"
APOLLO_PROD: "http://admin:[email protected]:9999/prod"
push 代码就可
test 分支会读取 APOLLO_FAT 下的配置
master 分支会读取 APOLLO_PROD 下的配置