gitlab-webhook-publish
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "gitlab-webhook-publish", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A minimal server which allows to publish a package after a commit.", | ||
@@ -5,0 +5,0 @@ "repository": { |
# gitlab-webhook-publish | ||
This porject consist of a lite server using gitlab hooker mechanism to easily synchronise a npm package hosted | ||
This project consist of a lite server using gitlab hooker mechanism to easily synchronise a npm package hosted | ||
on gitlab with a repository server. | ||
@@ -9,3 +9,3 @@ | ||
It is very simple. Using gitlab system hooker `project_create`, we can detect when a new repository is created and | ||
then add a gitlab webhooker whichs send a post request to the webhook server whichs then execute the `npm publish` command. | ||
then add a gitlab webhooker which send a post request to the webhook server which then execute the `npm publish` command. | ||
@@ -29,4 +29,4 @@ # Install | ||
"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) */ | ||
"admin_login": "root", /* The admin login (used to repo ddl) */ | ||
"admin_password": "password" /* The admin password */ | ||
}, | ||
@@ -36,8 +36,8 @@ "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) */ | ||
"password": "12345678", /* The account password */ | ||
"email": "name@provider.com" /* The account email */ | ||
} | ||
} | ||
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 finish the installation, you have to add (only ONE time), a system hooker on gitlab (if you have a programmatically way to add a system hooker on gitlab, please contact me). | ||
@@ -44,0 +44,0 @@ 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. |
11525