updated ci files
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2020-04-12 16:28:39 +02:00
parent 49ff405448
commit d87032b43d
2 changed files with 1 additions and 9 deletions

View File

@ -18,7 +18,6 @@ steps:
api_key:
from_secret: gitea_token
files: dist/*.tar.gz
title: $DRONE_TAG
checksum:
- sha256
- sha512
@ -45,7 +44,6 @@ steps:
api_key:
from_secret: gitea_token
files: dist/*.tar.gz
title: $DRONE_TAG
checksum:
- sha256
- sha512

View File

@ -1,7 +1,6 @@
#!/bin/bash
PROJECTNAME=coronafana
RELEASEDIR=dist
RELEASENAME=${PROJECTNAME}
VERSION="0"
@ -17,18 +16,13 @@ build() {
VERSION=$DRONE_COMMIT
fi
if [[ ! -d $RELEASEDIR ]]
then
mkdir dist
fi
if [[ ! -z $VERSION && ! -z $GOOS && ! -z $GOARCH ]]
then
RELEASENAME=${PROJECTNAME}-${VERSION}-${GOOS}-${GOARCH}
fi
go build -o ${RELEASEDIR}/${RELEASENAME} ${GOOPTIONS} ${SRCFILES}
go build -o ${RELEASENAME} ${GOOPTIONS} ${SRCFILES}
if [[ ! -z $DRONE_TAG ]]
then
cd ${RELEASEDIR}
tar -czvf ${RELEASENAME}.tar.gz ${RELEASENAME}
fi
}