Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

go-cicd

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go-cicd

A webhook for gitlab to CICD

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Usage

mkdir my-runner
cd my-runner
npm install go-cicd
vi app.js
const GoCICDServer = require('go-cicd');

const config = {
    namespace: "",//name space for hook router. Eg: "v1" => http://localhost:9119/v1/hooks
    log: {
        stores: ['file'] // if use stores: ['file'], process logs are write to log file, you can access to file via http://localhost:9119/logs
    },
    http: {
        port: 9191
    },
    // Multi project per hook
    projects: [
        {
            git_http_url: 'https://github.com/hunglsxx/gocicd.git', // your git
            git_branch: 'master', // your git branch
            dir: '/var/www/html/cicd' //your code dir
        },
    ]
};

var goci = new GoCICDServer(config);
goci.run();
node app.js

Add your hook to gitlab webhook:

http://localhost:9191/hooks

Copy yml template file to your project dir and change file name to .go-ci.yml

cp node_modules/go-cicd/go-ci.template.yml your/project/dir/.go-ci.yml

Define your scripts in .go-ci.yml by yourself.

Keywords

FAQs

Package last updated on 17 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc