Coder Social home page Coder Social logo

solo-ci's Introduction

Solo CI

Gitter

Description

中文版

A lightweight golang CI/CD tools, you only need write a simple config, it will clone, build, test, deploy

{
  "get_list":[
    "github.com/asaskevich/govalidator"
  ],
  "zip_list":[
    "conf"
  ],
  "after_script":"echo hello",
  "before_script":"pwd"
}

Features

  • Support Gitlab, Github(application/json) webhook
  • Only need very small memory and cpu, it can run on every Linux host
  • You only need to start it ,it will get the env auto.
  • The simple config, if you want, you don't need to write it.
  • Auto clone, buil, test, clean, tar
  • Support after script and before script, it will run on the project path
  • Support REST API
  • Every build will be saved

Use

  1. go get github.com/astaxie/beego go get github.com/mattn/go-sqlite3 go get github.com/satori/go.uuid
  2. GOPATH,GOROOT,GIT
  3. Download solo-ci binary
  4. Use REST API new a ci project
  5. Write a config and configure your webhook
  6. push!
  7. The Build will save at workspace dir.
  8. go-sqlite3 requires gcc pre-installed. use "sudo apt-get install build-essential" to install gcc if necessary

REST API

Method Url Params Description
POST http://your-ip:13233/v1/solohook/:project_id - project_id(path) Run Webhook
POST http://your-ip:13233/v1/project - name(form) New a project
- type(form, gitlab or github or bitbucket)
- url(form)
- path(form,the position of solo-ci.json)
- branch(form)
- secret_token(form,not necessary)
- main_path(form,the position of main.go)
DELETE http://your-ip:13233/v1/project/:project_id - project_id(path) Delete project
PUT http://your-ip:13233/v1/project/:project_id - project_id(path) Update Project
- name(form)
- type(form, gitlab or github)
- url(form)
- path(form,the position of solo-ci.json)
- branch(form)
- secret_token(form,not necessary)
GET http://your-ip:13233/v1/project/:project_id - project_id(path) Get Project Info
GET http://your-ip:13233/v1/project - project_id(path) Get project list
- page (default 0)
- pageSize(default 20)

Config solo-ci.json

  • get_list:the go get list
  • zip_list:the file you want to tar
  • before_script:it will run before build
  • after_script:it will run after build

If you don't want to write a config, you can write a blank config.

{

}

Next

  • Support Web GUI

solo-ci's People

Contributors

arrislee avatar smallsohosolo 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.