5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-29 22:01:53 +00:00

Try travis bintray integration (2)

This commit is contained in:
Wim 2017-07-16 21:05:29 +02:00
parent 320be5bffa
commit 717023245f

View File

@ -1,9 +1,8 @@
#!/bin/bash #!/bin/bash
VERSION=$(git describe --tags) VERSION=$(git describe --tags)
mkdir ci/binaries
go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-$GOOS-$GOARCH
cd ci 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 cat > deploy.json <<EOF
{ {
"package": { "package": {
@ -16,7 +15,7 @@ cat > deploy.json <<EOF
}, },
"files": "files":
[ [
{"includePattern": "binaries/(*)", "uploadPattern":"\$1"} {"includePattern": "binaries/(.*)", "uploadPattern":"\$1"}
], ],
"publish": true "publish": true
} }