2020-10-10 15:41:10 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
# Gokins文档
|
2020-10-10 14:19:27 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
# Gokins: *More Power*
|
2020-10-10 14:19:27 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|

|
2020-10-10 14:19:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
Gokins一款由Go语言和Vue编写的款轻量级、能够持续集成和持续交付的工具.
|
2020-10-10 14:19:27 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
* **持续集成和持续交付**
|
2020-10-30 12:27:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
作为一个可扩展的自动化服务器,Gokins 可以用作简单的 CI 服务器,或者变成任何项目的持续交付中心
|
2020-10-10 14:19:27 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
* **简易安装**
|
2020-10-10 16:24:59 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
Gokins 是一个基于 Go 的独立程序,可以立即运行,包含 Windows、Mac OS X 和其他类 Unix 操作系统。
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
* **安全**
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
绝不收集任何用户、服务器信息,是一个独立安全的服务
|
2020-10-20 20:02:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
## Gokins 官网
|
2020-10-20 20:02:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
**地址 : http://gokins.cn**
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
可在官网上获取最新的Gokins动态
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
## Gokins Demo
|
|
|
|
|
http://gokins.cn:8030
|
2020-10-13 14:39:47 +08:00
|
|
|
|
```
|
2021-07-22 10:53:38 +08:00
|
|
|
|
用户名: guest
|
|
|
|
|
密码: 123456
|
2020-10-13 14:39:47 +08:00
|
|
|
|
```
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
## Quick Start
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
It is super easy to get started with your first project.
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
#### Step 1: 环境准备
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
- Mysql
|
|
|
|
|
- Dokcer(非必要)
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
#### Step 2: 下载
|
|
|
|
|
- Linux下载:http://bin.gokins.cn/gokins-linux-amd64
|
|
|
|
|
- Mac下载:http://bin.gokins.cn/gokins-darwin-amd64
|
|
|
|
|
> 我们推荐使用docker或者直接下载release的方式安装Gokins`
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
#### Step 3: 启动服务
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2020-10-13 14:39:47 +08:00
|
|
|
|
```
|
2021-07-22 10:53:38 +08:00
|
|
|
|
./gokins
|
|
|
|
|
```
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
#### Step 3: 安装Gokins
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
访问 `http://localhost:8030`进入到Gokins安装页面
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|

|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
按页面上的提示填入信息
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
默认管理员账号密码
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
`username :gokins `
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
`pwd: 123456 `
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
#### Step 4: 新建流水线
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
- 进入到流水线页面
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|

|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
- 点击新建流水线
|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|

|
2020-10-13 14:39:47 +08:00
|
|
|
|
|
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
填入流水线基本信息
|
2020-10-10 15:39:45 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
- 流水线配置
|
2020-10-10 16:21:39 +08:00
|
|
|
|
|
2020-10-20 19:43:06 +08:00
|
|
|
|
```
|
2021-07-22 10:53:38 +08:00
|
|
|
|
version: 1.0
|
|
|
|
|
vars:
|
|
|
|
|
stages:
|
|
|
|
|
- stage:
|
|
|
|
|
displayName: build
|
|
|
|
|
name: build
|
|
|
|
|
steps:
|
|
|
|
|
- step: shell@sh
|
|
|
|
|
displayName: test-build
|
|
|
|
|
name: build
|
|
|
|
|
env:
|
|
|
|
|
commands:
|
|
|
|
|
- echo Hello World
|
2020-10-20 20:02:06 +08:00
|
|
|
|
|
|
|
|
|
```
|
2020-10-10 15:39:45 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
关于流水线配置的YML更多信息请访问 [YML文档](http://gokins.cn/%E5%B7%A5%E4%BD%9C%E6%B5%81%E8%AF%AD%E6%B3%95/)
|
2020-10-10 15:39:45 +08:00
|
|
|
|
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
- 运行流水线
|
2020-10-10 16:21:39 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|

|
2020-10-30 20:35:44 +08:00
|
|
|
|
|
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
`这里可以选择输入仓库分支或者commitSha,如果不填则为默认分支`
|
2020-10-10 14:19:27 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|
- 查看运行结果
|
2020-10-20 19:43:06 +08:00
|
|
|
|
|
2021-07-22 10:53:38 +08:00
|
|
|
|

|
2020-10-30 20:35:44 +08:00
|
|
|
|
|