From 3ae166b2c375dab8b52c6b9302bdea4de4909d21 Mon Sep 17 00:00:00 2001 From: Xuu Date: Mon, 17 Aug 2020 12:47:37 -0600 Subject: [PATCH] update runner --- debian/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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