#阿里云云效配置 说明:当使用阿里云云效服务替换gitlab时,参照本文档进行配置。
##第一步:创建云效ak,sk 1、在阿里云上面创建账号,为账号授权云效的管理员权限,为账号创建ak,sk。 2、在云效中创建好所需的仓库组,层级结构如下
autocode #顶层仓库组
backend #子仓库组
frontend #子仓库组
autocode-extend #顶层仓库组
backend #子仓库组
frontend #子仓库组
##第二步:修改nacos中public配置
seeyon:
repo:
type: codeup
localBaseDir: /A8C
codeup:
accessKeyId: ak
accessKeySecret: sk
regionId: cn-hangzhou #根据实际情况修改
endpoint: codeup.cn-hangzhou.aliyuncs.com #根据实际情况修改
organizationId: xxxxx #根据实际情况修改
namespaceId: xxxxx #根据实际情况修改
apiUrl: https://codeup.aliyun.com
username: codeupuser #根据实际情况修改
password: codeuppassword #根据实际情况修改
email: code@exp.com #根据实际情况修改
parentGroupPath: autocode
parentExtendGroupPath: autocode-extend
参数说明:
localBaseDir: /A8C #udc容器中使用的代码存储目录,需要挂载出来
accessKeyId: ak #阿里云用户的ak,sk需要,拥有云效管理员权限
accessKeySecret: sk #阿里云用户的ak,sk需要,拥有云效管理员权限
regionId: cn-hangzhou #云效所在地域的编码
endpoint: codeup.cn-hangzhou.aliyuncs.com #云效实例的endpoint
organizationId: xxxxx #云效的组织id
namespaceId: xxxxx #云效的namespaceId,通过接口(https://api.aliyun.com/api/devops/2021-06-25/ListOrganizations?tab=DEBUG)获取,输入企业信息
apiUrl: https://codeup.aliyun.com #云效的接口地址
username: codeupuser #阿里云的登录账号
password: codeuppassword #阿里云的登录账号密码
email: code@seeyon.com #邮箱,可以随便填写,代码提交记录
parentGroupPath: autocode #云效中使用仓库组
parentExtendGroupPath: autocode-extend #云效中使用扩展仓库组
##第三步:重启udc、ctp-user服务生效
编撰人:liubo
快速跳转
← 手动部署 Prometheus监控 →
