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)
|
RELEASE:=$(shell cat RELEASE)
|
||||||
|
|
||||||
REPO_HOST="xuu@kapha"
|
REPO_HOST="xuu@kapha"
|
||||||
|
ANSIBLE_HOST="kapha"
|
||||||
REPO_PATH="/opt/web/pub/sour.is/debian/"
|
REPO_PATH="/opt/web/pub/sour.is/debian/"
|
||||||
|
|
||||||
all: release build copy
|
all: release build copy
|
||||||
|
@ -13,8 +14,8 @@ clean:
|
||||||
release:
|
release:
|
||||||
@echo "release version $(RELEASE)"
|
@echo "release version $(RELEASE)"
|
||||||
@echo `expr $(RELEASE) + 1` > RELEASE
|
@echo `expr $(RELEASE) + 1` > RELEASE
|
||||||
git commit -am "release version $(RELEASE)"
|
git commit -am "release version $(VERSION)-$(RELEASE)"
|
||||||
git tag -a -m "release version $(RELEASE)" "v$(RELEASE)"
|
git tag -a -m "release version $(VERSION)-$(RELEASE)" "v$(VERSION)-$(RELEASE)"
|
||||||
git push --tags
|
git push --tags
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -36,6 +37,6 @@ copy:
|
||||||
ssh $(REPO_HOST) -- $(REPO_PATH)scan.sh "$(REPO_PATH)$(NAME)_$(VERSION)-$(RELEASE).deb";
|
ssh $(REPO_HOST) -- $(REPO_PATH)scan.sh "$(REPO_PATH)$(NAME)_$(VERSION)-$(RELEASE).deb";
|
||||||
|
|
||||||
deploy:
|
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
|
.PHONY: clean release build copy # deploy
|
||||||
|
|
Loading…
Reference in New Issue
Block a user