# easy-ci

> Very easy continuous integration tool for Github with docker support

Latest version **0.0.8** (published 2016-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install easy-ci
pnpm add easy-ci
yarn add easy-ci
bun add easy-ci
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-08-28 |
| First published | 2016-08-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | arvitaly |

## Links

- npm: https://www.npmjs.com/package/easy-ci
- Repository: https://github.com/arvitaly/easy-ci
- Homepage: https://github.com/arvitaly/easy-ci#readme
- Issues: https://github.com/arvitaly/easy-ci/issues
- npm.io page: https://npm.io/package/easy-ci

## Dependencies (2)

- [express](https://npm.io/package/express.md) ^4.14.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.15.2

## Recent versions

- 0.0.8 (latest) — 2016-08-28
- 0.0.7 — 2016-08-21
- 0.0.6 — 2016-08-21
- 0.0.5 — 2016-08-20
- 0.0.4 — 2016-08-20
- 0.0.3 — 2016-08-20

## README

# EasyCI: very easy continuous integration tool for Github with docker support
[![Build Status](https://travis-ci.org/arvitaly/easy-ci.svg?branch=master)](https://travis-ci.org/arvitaly/easy-ci)
[![npm version](https://badge.fury.io/js/easy-ci.svg)](https://badge.fury.io/js/easy-ci)

# How to use

EasyCI create http-server for listen github webhooks. Service support multiple repositories. Before start, you should create config file with settings for every repository.

After call hook, EasyCI start "git pull" with ssh-key from settings and after start `command` (from settings). 
You can set any path for repository, where need use `git pull`.
Config can be found by this code:

    process.env.CONFIG || "/etc/easy-ci/config.js"

# Example of config

    var secret = require("./secret");`
    module.exports = {`
    `repos: {`
        repo1: {
            //repository ssh deploy key path https://developer.github.com/guides/managing-deploy-keys/
            key: "/var/keys/key1",
            //github webhook secret https://developer.github.com/webhooks/securing/#setting-your-secret-token
            secret: secret,
            path: "/var/easy-ci/repo1",
            command: () => {
                return new Promise((resolve) => {
                    setTimeout(() => {
                        resolve("hello");
                    }, 10);
                });
            }
        }
    }
}`
# Use with docker
Docker image `arvitaly/easy-ci` from hub, just pull it

    docker pull arvitaly/easy-ci

You can mount any path for every repositories and for config file

    docker run -v /var/easy-ci/config.js:/etc/easy-ci/config.js -v /var/easy-ci/repo1:/var/easy-ci/repo1 --name easy-ci --publish=7654:7654 -d arvitaly/easy-ci
    
# HTTPS

EasyCI not support https, but you can use nginx (or other) with `Let's Encrypt` https://letsencrypt.org/ https://www.nginx.com/blog/free-certificates-lets-encrypt-and-nginx/ and proxy http://nginx.org/ru/docs/http/ngx_http_proxy_module.html

---
_Source: https://npm.io/package/easy-ci · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
