GithubHelp home page GithubHelp logo

goci's Introduction

A CI Flow builder for Go applications based on yourdomain's repository.

Install

bash <(curl -s http://agent.ops.yourdomain.com/static/goci/install.sh)

Usage

Step 1. Create your project

goci <Project Name> <App Name> <Author>

Specify your project's, application's and author's name explicitly.

goci <Project Name> <App Name>

Author defaults to the logined account's name, whoami

goci <App Name>

Set project's name to app's name.

e.g.

goci demo HelloWorld yourname

That will create a folder ./HelloWorld contains a new go project named HelloWorld and expected to be pushed into hub.yourdomain.com/demo/HelloWorld,

Naturally the image's creator is yourname.

Furthermore, this project will generate a rancher catalog template named demo,

Step 2. Push to Gitlab

Before this, you should have an empty repository existed for your project.

Use below command to push this project to your gitlab repository:

make git

The repository's address defaults to [email protected]:<Author>/<App Name>.git. So in the above case, your project will be pushed to [email protected]:yourname/Helloworld.git.

Step 3. Create a project at Jenkins

Add this command:

make ci

in the Excute shell input text of your project settings.

Once a push event happening in the gitlab repository, Jenkins will trigger a build to the project.

Step 4. Push your project-template into your rancher catalog

Once you launch a stack via this project's catalog template, the stack's name is demo (Project Name), and the service's name is HelloWorld (App Name).

CI Flow

Including:

  • godep
  • test
  • review
  • build
  • pack
  • rancherize

Architecture

goci

Dependencies

Specs

  1. Use golang dep to manage dependencies
  2. SemVer

Terms

goci-terms

Rancher Catalog

Todo

goci's People

Stargazers

 avatar

Watchers

James Cloos avatar  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.