1.0.1 • Published 6 years ago

release-miner v1.0.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
6 years ago

Release miner

npm npm

This software allows you to check if latest Wazuh App tag has consistency with the latest Elastic Stack tags. It's a npm package, so you can install it every where you have Node.js!

How to use

Install dependencies:

$ npm install release-miner

Create a file named config.js with the following content:

const miner = require('release-miner');
miner({
    EMAIL:       'a gmail account',
    PASSWORD:    'the gmail account password',
    SUBSCRIBERS: [array of destinations],
    GIT_TOKEN:   'your git api token'
})
.then(() => console.log('Sent'))
.catch(console.error);

Using along with node-cron

You may want to run with a fixed frequency, so you can use node-cron. First, install node-cron as follow:

$ npm install node-cron

Then create a file named launcher.js with the following content:

const cron = require('node-cron');
const miner  = require('release-miner');
cron.schedule('21 9,15,19 * * *', function(){
    miner({
        EMAIL:       'a gmail account',
        PASSWORD:    'the gmail account password',
        SUBSCRIBERS: [array of destinations],
        GIT_TOKEN:   'your git api token'
    });
});

Note that '21 9,15,19 * * *' is cron format. It says make something at 9:21, 15:21 and 19:21 every day.

E-mail example

Are up to date?
Status	: Valid
Current	: v3.0.0-6.1.0 | v6.1.0

Elastic Stack latest tags
Kibana	: v6.1.0
Elasticsearch	: v6.1.0
Logstash	: v6.1.0
Filebeat	: v6.1.0

Wazuh App latest tag
Wazuh App	: v3.0.0-6.1.0

2017-12-15 19:21:02
1.0.1

6 years ago

2.0.0

6 years ago