From 695874b43f10e638cb36ea9b8071f9420be82772 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 14 Oct 2018 04:23:44 -0400 Subject: [PATCH] Test uploading/packaging --- .drone.yml | 18 +++++++++++++++++- server.go | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1783fd0..99baebb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,4 +26,20 @@ pipeline: group: build commands: - mkdir -p build/armv7 - - GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple \ No newline at end of file + - GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple + build-arm64: + image: golang:latest + group: build + commands: + - mkdir -p build/arm64 + - GOOS=linux GOARCH=arm64 go build -o build/arm64/deb-simple + package: + image: tystuyfzand/fpm + commands: + - export VERSION=`grep "VERSION" server.go | head -n 1 | awk '{print $5}' | sed -e 's/^"//' -e 's/"$//' | tr -d '\n'` + - chmod +x packaging/build-package.sh packaging/package-upload.sh + - ARCH=i386 packaging/build-package.sh + - ARCH=amd64 packaging/build-package.sh + - ARCH=armv7 packaging/build-package.sh + - ARCH=arm64 packaging/build-package.sh + - packaging/package-upload.sh \ No newline at end of file diff --git a/server.go b/server.go index 9a8106b..9f0394f 100644 --- a/server.go +++ b/server.go @@ -16,7 +16,7 @@ import ( "io" ) -var VERSION string = "1.3.6" +var VERSION string = "1.3.7" func packageName(name string) string { if index := strings.Index(name, "_"); index != -1 {