update runner

This commit is contained in:
Xuu 2020-08-17 12:47:37 -06:00
parent 1061d8c48c
commit 3ae166b2c3
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F

7
debian/Makefile vendored
View File

@ -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