-
Choerodon平台版本:0.23
-
运行环境:自主搭建
-
问题描述:
提交代码后,gitlab runner进行build,遇到2个问题:
- maven 的settings.xml是默认的中央仓库,国内访问很慢
- harbor创建的https证书是自签名的,build失败
-
执行的操作:
提交代码,等待gitlab-ci build -
报错信息(请尽量使用代码块或系统截图的形式展现):
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/11.0.2/guava-11.0.2.jar (1.6 MB at 12 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:27 min
[INFO] Finished at: 2020-12-01T15:42:41+08:00
[INFO] ------------------------------------------------------------------------
$ mv target/app.jar $PWD/docker
$ kaniko -c $PWD/docker -f $PWD/docker/Dockerfile -d ${DOCKER_REGISTRY}/${GROUP_NAME}/${PROJECT_NAME}:${CI_COMMIT_TAG}
error checking push permissions – make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for “harbor.ax.iliu.cc/operation-a-20201131-01/s-20201201-02:2020.12.1-144757-feature-a-20201131-01-3”: creating push check transport for harbor.ax.iliu.cc failed: Get https://harbor.ax.iliu.cc/v2/: x509: certificate signed by unknown authority
ERROR: Job failed: command terminated with exit code 1`
请教如何处理这2个问题?