gitlab-webhook-publish
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "gitlab-webhook-publish", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A minimal server which allows to publish a package after a commit.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -19,20 +19,26 @@ # gitlab-webhook-publish | ||
"host": "localhost", | ||
"port": 3000, /* Port of the server */ | ||
"port": 3000, /* Port of the server */ | ||
"filter": { | ||
"namespace" : "^local-app$", /* Regex to filter using project namespace */ | ||
"branch" : "^refs\/heads\/master$" /* Regex to filter using project branch */ | ||
"namespace" : "^local-app$", /* Regex to filter using project namespace */ | ||
"branch" : "^refs\/heads\/master$" /* Regex to filter using project branch */ | ||
} | ||
}, | ||
"gitlab": { | ||
"url": "http://localhost:80", /* The url of the gitlab server */ | ||
"token": "dBqAHFnJsgMPTzzP6qGu", /* The admin token (used to add webhooks) */ | ||
"admin_login": "root", /* The admin login (used to downlaod repo and process it */ | ||
"admin_password": "password" /* The admin password (same as admin_login) */ | ||
"url": "http://localhost:80", /* The url of the gitlab server */ | ||
"token": "dBqAHFnJsgMPTzzP6qGu", /* The admin token (used to add webhooks) */ | ||
"admin_login": "root", /* The admin login (used to downlaod repo and process it */ | ||
"admin_password": "password" /* The admin password (same as admin_login) */ | ||
}, | ||
"npm_registry": { | ||
"url": "https://registry.npmjs.org", /* Url of the npm registry */ | ||
"login": "iprotectmyaccount", /* The account login (used to to publish) */ | ||
"password": "12345678", /* The account password (same as login) */ | ||
"email": "name@provider.com" /* The account email (same as login) */ | ||
"url": "https://registry.npmjs.org", /* Url of the npm registry */ | ||
"login": "iprotectmyaccount", /* The account login (used to to publish) */ | ||
"password": "12345678", /* The account password (same as login) */ | ||
"email": "name@provider.com" /* The account email (same as login) */ | ||
} | ||
} | ||
To finish the installation, you have to add (only ONE time), a system hooker on gitlab (if you have a programmaticaly way to add a system hooker on gitlab, please contact me). | ||
To do that, go to `Admin Area > Hooks`. In `URL` input, add `http://<WEBHOOKER_HOST>:<WEBHOOKER_PORT>/project_create`. You can left `Secret Token` input empty. Check `Push events` checkbox. You can enable or not the `SSL Verification` if you want. | ||
Then ENJOY ! |
11598
44