Add docker-release receipt in makefile.

This commit is contained in:
sfigato 2019-09-05 19:51:13 +02:00
parent 49fd5c3f8b
commit f05b9beb48
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
.PHONY: clean clean-test clean-pyc clean-build
VERSION = $(shell grep VERSION setup.py|cut -d\" -f2)
VERSION = 1.1.1
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
@ -23,7 +23,7 @@ clean-test: ## remove test and coverage artifacts
rm -f .coverage
rm -fr htmlcov/
release: clean build
release: clean build docker-release
sdist:
python setup.py sdist
@ -57,3 +57,7 @@ sdist/bot_z-$(VERSION)-py3-none-macosx.whl: build-macos
install: clean ## install the package to the active Python's site-packages
python setup.py install
docker-release:
docker build -t botz:latest .
docker tag botz:latest botz:$(VERSION)

View File

@ -16,6 +16,10 @@ replace = __version__ = "{new_version}"
search = LABEL io.troubles.botz.version="{current_version}"
replace = LABEL io.troubles.botz.version="{new_version}"
[bumpversion:file:Makefile]
search = VERSION = {current_version}
replace = VERSION = {new_version}
[bdist_wheel]
universal = 0