Giter Site home page Giter Site logo

godeploy's Introduction

#go-deploy

Golang 实现的gitlab/github 自动部署程序

程序执行的git命令依次为:

git reset --hard 本路仓库名/远程仓库名

git pull

git checkout 远程仓库名称

配置

conf.ini 文件配置说明

#仓库名称
[backshop]

#监听的事件类型:push 推送;tag_push 标签创建
EventType=push

#本地仓库物理路径,用于拉去远程代码后存放的路径
LocalDir=E:\go\backshop

#认证码
Token=123456

#拉去之前执行的脚本路径
BeforeScript=

#拉取之后执行的脚本路径
AfterScript=

#本地分支名称
LocalBranch=origin

使用

#编译
go build

#启动并设置监听的端口

godeploy -port=8080

路径

Gitlab路径类似 http://192.168.4.104:8080/gitlab

Github 路径:http://192.168.4.104:8080/github

例如:你的ip地址是192.168.0.2,端口号是8001,则:

Gitlab的Hook路径就是:http://192.168.0.2:8001/gitlab

Github的Hook路径就是:http://192.168.0.2:8001/github

godeploy's People

Contributors

lifei6671 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.