update runner
This commit is contained in:
parent
1061d8c48c
commit
3ae166b2c3
7
debian/Makefile
vendored
7
debian/Makefile
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user