Sign inSign up

thib3113/doczrunner-withgitlabinteruption

By thib3113

Updated over 6 years ago

WIP

Image
0

2.6K

thib3113/doczrunner-withgitlabinteruption repository overview

thib3113/doczrunner-withgitlabinteruption

Greenkeeper badge Build Status stars numbers from docker pull numbers from docker here  is build automated ? build status

This projet is here to run a documentation, generated by docz, waiting for webhooks coming from gitlab, when pipeline succeed.

The goal of this image is to auto reload a styleguide, when we push on the gitlab repository . We have a specific repository for the documentation .

This is divided in two part, the tag CI, will be used in Gitlab CI to test if docz correctly generate the documentation . When it's work, gitlab will send a webhook to the guideline website .

The other part is the website guideline, it will clone the repository in the working folder, symlink the current folder to this folder, and start docz on this folder . Behind this, we use an express proxy, handling the webhook of gitlab, to update the current folder .

Env

KeyDescriptionDefault
PORTThe port to be used by the express proxy3001
GIT_REPOThe url to the git repository ( ssh or HTTPS )
SSH_HOSTURL of the git host ( site.com ), if not defined, doesn't support ssh url
SSH_KEYThe private key to use with SSH
SSH_KEY_PASSPHRASEthe passphrase of the SSH key (Doesn't work)
GITLAB_TOKENToken used by gitlab webhook
CI_MODEApplication will exit before starting webserverfalse

All of this env work with _FILE for secrets . Example, insteed of sending SSH_KEY, you can use : SSH_KEY=/run/secrets/SSH_KEY See more details

Volume

You can bind this volumes

path in the containerdescription
/app/workingContain multiple folders with clones of your documentation (the folder current is a symlink to the current folder used)

Tag summary

Content type

Image

Digest

Size

236.3 MB

Last updated

over 6 years ago

docker pull thib3113/doczrunner-withgitlabinteruption