使用Drone CI进行cicd搭建

使用 Drone CI 进行 cicd 搭建

安装 docker

drone ci 需要使用 docker

docker 安装文档

1
2
3
4
# docker仓库设置为阿里云源
yum-config-manager \
--add-repo \
http:**//**mirrors.aliyun.com**/**docker-ce**/**linux**/**centos**/**docker-ce.repo

github 给 drone ci 进行 oAuth 认证

因为我的代码仓库基于 github,需要进行这一步oAuth 认证文档

其中 homepage 和 callback url 填写规则为

  • HomePage 是 DroneCI 的访问地址,若是 Drone 由本地部署,那就可以设置为http://127.0.0.1

  • Authorization callback URL 是 DoneCI 的登陆地址,格式必须是{{HomePage}}/login,如http://127.0.0.1/login

  • 创建成功以后,拿到Client IDClient Secret

    参考资料

    搭建到一半,,转头就走
    还是 jenkins 香
    告辞…

Author: liuarui
Link: https://liuarui.github.io/2021/07/11/工程化/使用Drone CI进行cicd搭建/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.