Giter Club home page Giter Club logo

webhook's Introduction

基于webhook的自动化部署服务

服务器需要配置git,node,docker环境,并且需要配置ssh密钥

  • webhook配置

    webhook url上目前需加上branch params http://localhost:8000?branch=master

  • 项目启动

        git clone https://github.com/liou666/webhook.git
        cd webhook/web
        node app.js
  • 项目基础配置

    // config/constant.js
    
    const GIT_PROJECT_NAME="xxx"; //git项目名称
    const GIT_ADDRESS="[email protected]:xxx/xxx.git";//git    仓库地址
    const PORT=xxx ;//node服务启动端口
    const GITLABEL_TOKEN="xxx"//webhook的token
    
    module.exports={
        GIT_PROJECT_NAME,
        GIT_ADDRESS,
        PORT,
        GITLABEL_TOKEN
    }
    // config/index.js
    
    //branch对应git仓库的分支名,port对应docker容器映射到本地的端口 
    module.exports=[{
        branch:"master",
        port:80
    },
    {
        branch:"test",
        port:81
    }]

webhook's People

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.