diff --git a/debian/Makefile b/debian/Makefile index 7a0ed73..e144099 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -3,6 +3,7 @@ VERSION:=$(shell cat VERSION) RELEASE:=$(shell cat RELEASE) REPO_HOST="xuu@kapha" +ANSIBLE_HOST="kapha" REPO_PATH="/opt/web/pub/sour.is/debian/" all: release build copy @@ -13,8 +14,8 @@ clean: release: @echo "release version $(RELEASE)" @echo `expr $(RELEASE) + 1` > RELEASE - git commit -am "release version $(RELEASE)" - git tag -a -m "release version $(RELEASE)" "v$(RELEASE)" + git commit -am "release version $(VERSION)-$(RELEASE)" + git tag -a -m "release version $(VERSION)-$(RELEASE)" "v$(VERSION)-$(RELEASE)" git push --tags build: @@ -36,6 +37,6 @@ copy: ssh $(REPO_HOST) -- $(REPO_PATH)scan.sh "$(REPO_PATH)$(NAME)_$(VERSION)-$(RELEASE).deb"; deploy: - ansible $(REPO_HOST) -b -m apt -a "name=sour.is-paste update_cache=yes state=latest" + ansible $(ANSIBLE_HOST) -b -m apt -a "name=sour.is-paste update_cache=yes state=latest" .PHONY: clean release build copy # deploy