Skip to content

Latest commit

 

History

102 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Tags Docker Latest Tag Travis

Docker image for commitlint


Running:

$ docker run --rm gtramontina/commitlint:<version>

You'll get a /app work directory, so all you need to do is mount your git-based project in the that directory with the -v, --volume docker parameter:

--volume $(pwd):/app

If you prefer, you can mount only your .git directory and your configuration file, like so:

--volume $(pwd)/.git:/app/.git \
--volume $(pwd)/.commitlintrc:/app/.commitlintrc

Or, if, for whatever reason, you need a different work directory, you can simply set it with -w, --workdir:

--workdir /my-app \
--volume $(pwd):/my-app

Note 1: If you want commitlint to read from STDIN, don't forget to set the -i, --interactive flag to keep STDIN open.

Note 2: This image ships with the following commitlint's configuration preset packages (so you can extend them in your configuration file):


Developing:

$ make build    # Builds a new image
$ make test     # Runs/tests the image
$ make push     # Pushes the image up
$ make clean    # Removes any generated artifacts
$ make clobber  # Removes artifacts and generated images

🐳

Releases

Packages

Used by

Contributors

Languages