Automatic release name based on package version number

You can automate release creation by adding this snippet to pipeline.

It will create a new release (git tag) based on current package version.

1
git tag -a v$(python setup.py --version) -m 'description of version'

Labeling docker images

You can also use the same approach to label docker images with current package version.

1
docker build -t myimage:latest -t myimage:$(python setup.py --version) .