Skip to content

darneta/rpwm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpwm

Rhodecode packagist webhook middleware

TLTR

Middleware which passes rhodecode repository webhook to packagist for auto packagist update on push event in repository.

Run in docker

Check https://github.com/darneta/rpwm-dockerized

Supported versions

Tested on:

  • Rhodecode 4.6.x
  • Packagist master

Might work on older/newer versions too.

Requirements

  • npm
  • nodejs

Config

Via env variables

PACKAGIST_USER - packagist username
PACKAGIST_TOKEN - packagist API Token
WEBHOOK_TOKEN - Rhodecode webhook "Secret Token"
PACKAGIST_URL - default "https://packagist.org"
APP_PORT - default 80

Setup

Install

npm install && npm cache clean --force

Run

PACKAGIST_USER=someuser PACKAGIST_TOKEN=secrettoken WEBHOOK_TOKEN=rhodecodesecretoken nodejs script.js

About

Rhodecode packagist webhook middleware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published