You've already forked www.colben.cn
update
This commit is contained in:
@@ -7,14 +7,14 @@ tags: ["drone", "cicd"]
|
||||
categories: ["dev/ops"]
|
||||
---
|
||||
|
||||
# 环境
|
||||
## 环境
|
||||
|
||||
- 操作系统 Linux x86_64
|
||||
- 这里的 drone 是基于 gitea 配置的
|
||||
- 安装 gitea,参考[官方文档](https://docs.gitea.io/zh-cn/install-from-binary/)
|
||||
- 安装 docker-ce,参考[我的 docker 笔记](https://www.colben.cn/post/docker/#%E5%AE%89%E8%A3%85)
|
||||
|
||||
# 创建 OAuth2 应用
|
||||
## 创建 OAuth2 应用
|
||||
|
||||
- 登陆 gitea
|
||||
- 点击 "个人头像" - "设置" - "应用"
|
||||
@@ -27,7 +27,7 @@ categories: ["dev/ops"]
|
||||
- 记录 "客户端密钥"
|
||||
- 点击 "保存"
|
||||
|
||||
# 安装 drone
|
||||
## 安装 drone
|
||||
|
||||
- 下载 docker 镜像
|
||||
```bash
|
||||
@@ -52,8 +52,8 @@ categories: ["dev/ops"]
|
||||
|
||||
- 参考链接[https://docs.drone.io/server/provider/gitea/](https://docs.drone.io/server/provider/gitea/)
|
||||
|
||||
# 安装 drone runner
|
||||
## 安装 docker runner
|
||||
## 安装 drone runner
|
||||
### 安装 docker runner
|
||||
|
||||
- 下载 drone-runner-docker 镜像
|
||||
```bash
|
||||
@@ -77,7 +77,7 @@ categories: ["dev/ops"]
|
||||
|
||||
- 参考链接[https://docs.drone.io/runner/docker/installation/linux/](https://docs.drone.io/runner/docker/installation/linux/)
|
||||
|
||||
## 安装 exec runner
|
||||
### 安装 exec runner
|
||||
|
||||
- 下载
|
||||
```bash
|
||||
@@ -119,7 +119,7 @@ categories: ["dev/ops"]
|
||||
|
||||
- 参考链接[https://docs.drone.io/runner/exec/installation/linux/](https://docs.drone.io/runner/exec/installation/linux/)
|
||||
|
||||
# 使用 drone
|
||||
## 使用 drone
|
||||
|
||||
- 登陆 drone: http://<drone 服务器地址>:<drone 服务器端口>,此时会跳转到 gitea 登陆界面
|
||||
- 登陆成功后,浏览器返回 drone 首页,这里会显示我们创建/参与的 git 项目
|
||||
@@ -166,7 +166,7 @@ categories: ["dev/ops"]
|
||||
|
||||
- 其他 pipeline 参考[https://docs.drone.io/pipeline/overview/](https://docs.drone.io/pipeline/overview/)
|
||||
|
||||
# 适配 sonarqube
|
||||
## 适配 sonarqube
|
||||
|
||||
- 下载镜像
|
||||
```bash
|
||||
|
Reference in New Issue
Block a user