updated ci files
This commit is contained in:
parent
49ff405448
commit
d87032b43d
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user