爱意满满的作品展示区。
50vip

Git WebHook:用于迅速搭建并使用 WebHook 进行自动化部署和运维系统( Python)

  •  
  •   50vip · Oct 26, 2016 · 5542 views
    This topic created in 3661 days ago, the information mentioned may be changed or developed.

    一个使用 Python Flask + SQLAchemy + Celery + Redis + React 开发的用于迅速搭建并使用 WebHook 进行自动化部署和运维系统,支持: Github / GitLab / GitOsc 。

    1. 技术栈简单,部署容易;
    2. 代码简洁易懂,二次开发毫无压力;
    3. 支持 Github / GitLab / GitOsc ;
    4. 使用 SSH 方式,支持多服务配置;

    项目地址 | DEMO 示例

    https://github.com/NetEaseGame/git-webhook/raw/master/app/static/res/img/index.png

    17 replies  •  2016-10-29 22:20:31 +08:00
    chenyg32
    chenyg32
    Oct 26, 2016
    1
    为什么 Github 头像要这样……
    50vip
    50vip
    OP
    Oct 26, 2016
    2
    @chenyg32 这个头像怎么啦?
    julor
    julor
    Oct 26, 2016 via Android
    3
    建议支持 gogs
    50vip
    50vip
    OP
    Oct 26, 2016
    4
    @julor 好的,其实也简单,只需要求从 webhook post 过来的数据中解析出 branch , repo 名字等等字段就可以了。
    fy
    fy
    Oct 27, 2016
    5
    gogs + 1 资瓷
    cszhiyue
    cszhiyue
    Oct 28, 2016
    6
    webhook 的管理。很有用的一个项目。
    50vip
    50vip
    OP
    Oct 28, 2016
    7
    @fy 有线上可以用的 gogs 服务吗,方便测试的,不然自己搭建一个,呃呃呃~
    50vip
    50vip
    OP
    Oct 28, 2016
    8
    @cszhiyue 实际需求的产物都会有用,我这里用于 20 个左右机器同步部署代码的。
    fy
    fy
    Oct 28, 2016
    9
    @50vip 诶呀 这个都是私有版本库 不方便公开的
    其实搭建很简单,官方提供二进制又支持 sqlite (好像是吧),反正基本就是下载然后 ./gogs web 这两件事
    50vip
    50vip
    OP
    Oct 28, 2016
    10
    @fy 好吧, 我今天下班前尽量搞完~~~
    fy
    fy
    Oct 28, 2016
    11
    @50vip 辛苦辛苦
    50vip
    50vip
    OP
    Oct 28, 2016
    12
    @fy 客气了,这个简单的,就是解析 webhook 的 post json ,一般的 git 服务都差不多。

    已经兼容 gogs ,提交 [fb6c109]( https://github.com/NetEaseGame/git-webhook/commit/fb6c10992ebb06f3713827e452f83137869ccb93)
    50vip
    50vip
    OP
    Oct 28, 2016
    13
    @julor 已经支持 gogs
    julor
    julor
    Oct 28, 2016 via Android
    14
    @50vip 先 star 了,明天试试看
    qiukun
    qiukun
    Oct 29, 2016 via Android
    15
    👍
    julor
    julor
    Oct 29, 2016 via Android
    16
    楼主是妹子?
    如果有 docker 版就好了,一键就可以安装
    50vip
    50vip
    OP
    Oct 29, 2016 via iPad
    17
    @julor 正好已经有 docker 了,哈哈୧(๑•̀⌄•́๑)૭
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5042 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 07:40 · PVG 15:40 · LAX 23:40 · JFK 02:40
    ♥ Do have faith in what you're doing.