Public | Automated Build

Last pushed: 8 months ago
Short Description
Short description is empty for this repo.
Full Description

Bumpversion in a Docker container

Packaging the bumpversion utility.


The utility needs to know where to find your current version and which files to search/replace. You can either keep a .bumpversion.cfg file as described in the links above, or do something like this:

docker run -v $PWD:/src \
           -w /src \
           docker-bumpversion --current-version $(cat VERSION) \
           minor \

The code above mounts your current directory at /src and makes sure that is also the working directory. Current version is read from VERSION file, a minor bump is applied and version is replaced in VERSION and files.

Git tag

You can also let bumpversion make a tag:

docker run -v $PWD:/src \
           -w /src \
           docker-bumpversion --current-version $(cat VERSION) \
           --tag \
           minor \

Don't forget to push the tags afterwards:

git push --follow-tags


Does not handle the --commit flag because the container needs to identify itself to git. This is the error output:

*** Please tell me who you are.


  git config --global ""
  git config --global "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

Build your own

make build
Docker Pull Command
Source Repository