Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pascalgn/storybook-branches

Provide storybook builds for multiple branches
https://github.com/pascalgn/storybook-branches

autodeploy docker storybook

Last synced: 4 months ago
JSON representation

Provide storybook builds for multiple branches

Awesome Lists containing this project

README

        

# storybook-branches

[![Docker build status](https://img.shields.io/docker/cloud/build/pascalgn/storybook-branches.svg?style=flat-square)](https://hub.docker.com/r/pascalgn/storybook-branches/) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/pascalgn/storybook-branches/blob/master/LICENSE)

Provide [storybook](https://storybook.js.org/) builds for multiple branches and add a dropdown to quickly switch between those branches





Switching between different versions on branches storybook-1, storybook-2 and storybook-3

## Usage

Start

docker run --rm \
-p 9001:9001 \
-e "REPOSITORY=https://github.com/pascalgn/storybook-branches" \
-e "BRANCHES=storybook.+" \
pascalgn/storybook-branches:latest

## Options

The following environment variables are required:

* `REPOSITORY` The URL of the remote repository

Additionally, the following environment variables are supported:

* `DIR` The subdirectory within the repository (default _._)
* `PORT` The port to run the HTTP server on (default _9001_)
* `BRANCHES` Regular expression filter of the branches to build (default _.+_)
* `DEFAULT` Default branch to display (default remote branch will be used if unset)
* `SLEEP` The time to sleep between fetches, in seconds (default _60_)
* `OUTPUT` The output directory (default _dist_)
* `LOG_LEVEL` A [winston](https://github.com/winstonjs/winston) log level (default _info_)

Additionally, the following environment variables are available for
providing SSH keys, to connect to the remote repository:

* `KNOWN_HOSTS` The SSH host keys (stored in `~/.ssh/known_hosts`)
* `ID_RSA` The private SSH key (stored in `~/.ssh/id_rsa`)

## License

MIT