4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 13:09:24 +00:00

Try travis bintray integration

This commit is contained in:
Wim
2017-07-16 20:57:32 +02:00
parent 778abea2d9
commit 320be5bffa
2 changed files with 33 additions and 0 deletions

24
ci/bintray.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
VERSION=$(git describe --tags)
cd ci
mkdir binaries
go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1) -o binaries/matterbridge-$VERSION-$GOOS-$GOARCH
cat > deploy.json <<EOF
{
"package": {
"name": "Matterbridge",
"repo": "nightly",
"subject": "42wim"
},
"version": {
"name": "$VERSION-$GOOS-$GOARCH"
},
"files":
[
{"includePattern": "binaries/(*)", "uploadPattern":"\$1"}
],
"publish": true
}
EOF