From 07266754a063093deb1d940c7e6ea0701253672d Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 9 May 2020 19:47:48 +0200 Subject: [PATCH] updated ci-build.sh --- ci-build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci-build.sh b/ci-build.sh index d110278..0174b60 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -21,21 +21,24 @@ build() { RELEASENAME=${PROJECTNAME}-${VERSION}-${GOOS}-${GOARCH} fi - go get github.com/gobuffalo/packr/v2/packr2 - + echo "Running packr2" if [[ -f ${GOPATH}/bin/packr2 ]] then ${GOPATH}/bin/packr2 else + echo "packr2 binary not found" exit 1 fi + echo "Building project" go build -o ${PROJECTNAME} ${GOOPTIONS} ${SRCFILES} if [[ ! -z $DRONE_TAG ]] then tar -czvf ${RELEASENAME}.tar.gz ${PROJECTNAME} fi + + echo "Removing binary file" rm ${PROJECTNAME} }