Code Monkey home page Code Monkey logo

nocd's Introduction

NoCD 持续交付系统

构建状态

NoCD 是一个轻量可控的持续交付系统。

界面预览

首页截图 服务器管理 项目管理
交付记录 管理中心 查看日志

功能特色

  • 服务器:可以添加多个部署服务器
  • 项目:支持解析各种流行 Git 托管平台的 Webhook
  • 通知:灵活的自定义 Webhook
  • 交付记录:可以查看部署记录,用户可以停止部署中的流程
  • 管理面板:查看系统状态,管理用户,管理部署中的流程

部署指北

Docker

  1. 创建配置文件(如/data/nocd文件夹)

    nano /data/nocd/app.ini

    文件内容参考下面( web_listen = 0.0.0.0:8000 配置不要改)

  2. 运行NoCD

    docker run -d --name=nocd -p 8000:8000 -v /data/nocd/:/data/conf ghcr.io/naiba/nocd:latest

源码编译

  1. Clone 源代码

  2. 进入应用目录 cd nocd/cmd/web

  3. 编译二进制

    go build
  4. conf/app.ini 创建配置文件

    [nocd]
    cookie_key_pair = i_love_NoCD
    debug = true
    domain = your_domain_name # or ip:port
    web_listen = 0.0.0.0:8000
    loc = Asia/Shanghai
    [third_party]
    google_analysis = "NB-XXXXXX-1" # optional
    github_oauth2_client_id = example
    github_oauth2_client_secret = example
    sentry_dsn = "https://example:[email protected]/project_id" # optional
  5. 运行

    ./web
  6. GitHub 设置回调:http(s)://your_domain_name/oauth2/callback

常见问题

  1. 为什么我的部署脚本总是执行失败 或者 根本没有执行?

    请检查您的 PATH 路径是否引入,建议提前 export 一下路径,自动部署的时候不会

    source .bash_profile

  2. 如何保持后台运行?

    可以使用 systemd 。 更推荐使用docker方式运行。

License

MIT

nocd's People

Contributors

dependabot[bot] avatar naiba avatar

Stargazers

 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.