Sign inSign up

pascalgn/storybook-branches

By pascalgn

•Updated over 5 years ago

Provide storybook builds for multiple branches

Image
0

896

pascalgn/storybook-branches repository overview

⁠storybook-branches

Docker build status License

Provide storybook⁠ 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⁠ 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

Tag summary

Content type

Image

Digest

Size

51.6 MB

Last updated

over 5 years ago

docker pull pascalgn/storybook-branches