Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Fix release Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
weastur committed Mar 18, 2021
1 parent 977bb64 commit 880bf27
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ VERSION=`python -c "import dikort; print(dikort.__version__)"`

release: push

push: build py_push docker_push
push: py_push docker_push

build: py_build docker_build

py_build: clean
python -m build

docker_build: clean py_push
docker build . -t weastur/dikort:latest -t weastur/dikort:$VERSION
docker_build: clean
docker build . -t weastur/dikort:latest -t weastur/dikort:${VERSION}

py_push: py_build
twine upload dist/dikort-$VERSION*
twine upload dist/dikort-${VERSION}*

docker_push: clean docker_build
docker push weastur/dikort:latest weastur/dikort:$VERSION
docker_push: docker_build
docker push weastur/dikort:latest
docker push weastur/dikort:${VERSION}

clean:
rm -rf build/ dikort.egg-info/ dist

0 comments on commit 880bf27

Please sign in to comment.