java开发流程(未完成)

开发流程

github 开源下载 > idea编码 > yapi 测试 > git 上传代码 >gitlab ci-cd 远程部署 >执行远程指令
github 开源下载 > idea编码 > yapi 测试 > mvn 打包 > docker 制作镜像 (含配置镜像环境)>远程执行 docker 运行镜像

git配置

开发环境配置

idea配置

测试环境配置

yapi配置

maven配置

docker 配置

生产环境配置

gitlab-runner 配置

【运行下载步骤参考】 https://blog.csdn.net/qq_38165374/article/details/106986608
【指令】
1.添加yum源
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash
2.安装runner
yum install gitlab-ci-multi-runner
3.向GitLab-CI注册runner
gitlab-ci-multi-runner register
【token地址 在gtlab下的ci-cd 中】
b.Enter your GitLab instance URL:
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
你的gitlab地址
c.Enter the token you obtained to register the Runner:
Please enter the gitlab-ci token for this runner
你的token
d.Enter a description for the Runner, you can change this later in GitLab's UI:
Please enter the gitlab-ci description for this runner
[hostame] my-runner
e.Enter the tags associated with the Runner, you can change this later in GitLab's UI:
Please enter the gitlab-ci tags for this runner (comma separated):
tag 可以不写
f.Enter the Runner executor:
Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell:
shell
【加速下载地址】https://mirrors.tuna.tsinghua.edu.cn/help/gitlab-runner/

原文地址:https://www.cnblogs.com/yangxiaohang/p/15598012.html