Add docker-release receipt in makefile.
This commit is contained in:
parent
49fd5c3f8b
commit
f05b9beb48
8
Makefile
8
Makefile
|
@ -1,6 +1,6 @@
|
||||||
.PHONY: clean clean-test clean-pyc clean-build
|
.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
|
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 -f .coverage
|
||||||
rm -fr htmlcov/
|
rm -fr htmlcov/
|
||||||
|
|
||||||
release: clean build
|
release: clean build docker-release
|
||||||
|
|
||||||
sdist:
|
sdist:
|
||||||
python setup.py 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
|
install: clean ## install the package to the active Python's site-packages
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
|
||||||
|
docker-release:
|
||||||
|
docker build -t botz:latest .
|
||||||
|
docker tag botz:latest botz:$(VERSION)
|
||||||
|
|
|
@ -16,6 +16,10 @@ replace = __version__ = "{new_version}"
|
||||||
search = LABEL io.troubles.botz.version="{current_version}"
|
search = LABEL io.troubles.botz.version="{current_version}"
|
||||||
replace = LABEL io.troubles.botz.version="{new_version}"
|
replace = LABEL io.troubles.botz.version="{new_version}"
|
||||||
|
|
||||||
|
[bumpversion:file:Makefile]
|
||||||
|
search = VERSION = {current_version}
|
||||||
|
replace = VERSION = {new_version}
|
||||||
|
|
||||||
[bdist_wheel]
|
[bdist_wheel]
|
||||||
universal = 0
|
universal = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user