# go-pull **Repository Path**: myhome123456/go-pull ## Basic Information - **Project Name**: go-pull - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-06 - **Last Updated**: 2021-08-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 介绍 如果你没有gitlab,又不想安装Travis CI等工具。 如果你只是想单服务器项目需要用到CI能力,你可以试试使用这款工具。只需要下载二进制文件到你目标服务器。 简单配置一下既可以使用 假设: 服务器IP:122.111.111.111 ### 安装 wget `` ### 配置 1. config.yaml。用于启动工具http服务器 ```shell touch /home/user/.confg/taoxi/config.yaml ``` ```yaml secret: "" port: 9898 ciName: "git.ci.yaml" openSign: true loki: addr: "" apps: taoxi: root: "/home/xingbo/work/goapp/friend/go-taoxi" ``` 2 git.ci.yaml。参考了gitlab-ci.yaml。放在项目跟目录。也就是上面配置中的root路径 ```yaml names: - build stage: build: name: "build" command: "make rerun" ``` ### 设置webhook和secret 1. 在gitee代码仓库中增加webhook ![img_1.png](img/img_1.png) ```yaml http://122.111.111.111:9898/push ``` - 填写secret,随便一串字符就行。 - 复制粘贴到目标服务器的config.yaml,中的secret ### 运行 ```shell run --f=/home/user/.confg/taoxi/config.yaml ``` ### 提交代码测试 ```shell cd taoxi git add . git commit -m "test" git push ``` ### 效果图 提交代码之后,到gitee代码仓库中打开管理->Webhook即可看到请求历史,点击展开Response如下 ![img.png](img/img.png)