update makefile

This commit is contained in:
2018-02-15 09:11:52 -07:00
parent e631467b8b
commit 898bab21bf
3 changed files with 9 additions and 7 deletions

8
debian/Makefile vendored
View File

@@ -2,7 +2,7 @@ NAME=sour.is-paste
VERSION=$(shell cat VERSION)
RELEASE=$(shell cat RELEASE)
REPO_IP="172.22.141.171"
REPO_HOST="kapha"
REPO_PATH="/opt/web/pub/sour.is/debian/"
all: release build copy
@@ -32,8 +32,8 @@ copy:
export VERSION=`cat VERSION`; \
export RELEASE=`cat RELEASE`; \
export BUILD="BUILD/$(NAME)_$${VERSION}-$${RELEASE}"; \
scp "$${BUILD}.deb" $(REPO_IP):$(REPO_PATH); \
ssh $(REPO_IP) -- $(REPO_PATH)scan.sh "$(REPO_PATH)$(NAME)_$${VERSION}-$${RELEASE}.deb";
scp "$${BUILD}.deb" $(REPO_HOST):$(REPO_PATH); \
ssh $(REPO_HOST) -- $(REPO_PATH)scan.sh "$(REPO_PATH)$(NAME)_$${VERSION}-$${RELEASE}.deb";
deploy:
ansible kapha -s -m apt -a "name=sour.is-paste update_cache=yes state=latest"
ansible $(REPO_HOST) -s -m apt -a "name=sour.is-paste update_cache=yes state=latest"

2
debian/RELEASE vendored
View File

@@ -1 +1 @@
9
12