add drone runner
This commit is contained in:
19
debian/Makefile
vendored
19
debian/Makefile
vendored
@@ -11,25 +11,22 @@ clean:
|
||||
rm -r BUILD/*
|
||||
|
||||
release:
|
||||
export RELEASE=`cat RELEASE`; \
|
||||
echo `expr $${RELEASE} + 1` > RELEASE
|
||||
git commit -am "release version $${RELEASE}"
|
||||
git tag -am "release version $${RELEASE}"
|
||||
git push --tags
|
||||
|
||||
build:
|
||||
export VERSION=`cat VERSION`; \
|
||||
export RELEASE=`cat RELEASE`; \
|
||||
export DATE=`date -u +%FT%TZ`; \
|
||||
export BUILD="BUILD/$(NAME)_$${VERSION}-$${RELEASE}"; \
|
||||
rm -rf ./$${BUILD}; \
|
||||
cp -r ROOT "$${BUILD}"; \
|
||||
sed -i'.tmp' "s_Version:.*_Version: $${VERSION}-$${RELEASE}_" "$${BUILD}/DEBIAN/control"
|
||||
|
||||
export VERSION=`cat VERSION`; \
|
||||
export RELEASE=`cat RELEASE`; \
|
||||
export DATE=`date -u +%FT%TZ`; \
|
||||
export BUILD="BUILD/$(NAME)_$${VERSION}-$${RELEASE}"; \
|
||||
env GOOS=linux GOARCH=amd64 go build -v -o $${BUILD}/opt/sour.is/bin/paste \
|
||||
-ldflags "-X main.AppVersion=$${VERSION}-$${RELEASE} -X main.AppBuild=$${DATE}"\
|
||||
sour.is/x/paste/cmd/paste; \
|
||||
export DATE=`date -u +%FT%TZ`; \
|
||||
export BUILD="BUILD/$(NAME)_$${VERSION}-$${RELEASE}"; \
|
||||
env GOOS=linux GOARCH=amd64 go build -v -o $${BUILD}/opt/sour.is/bin/paste \
|
||||
-ldflags "-X main.AppVersion=$${VERSION}-$${RELEASE} -X main.AppBuild=$${DATE}"\
|
||||
sour.is/x/paste/cmd/paste; \
|
||||
dpkg -b $${BUILD};
|
||||
|
||||
copy:
|
||||
|
||||
Reference in New Issue
Block a user