summaryrefslogtreecommitdiffstats
path: root/ci/bintray.sh
blob: 0d3efa6e5d18234fcd01ed5a8281f0b2650299ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
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
cat > deploy.json <<EOF
{
    "package": {
        "name": "Matterbridge",
        "repo": "nightly",
        "subject": "42wim"
    },
    "version": {
        "name": "$VERSION-$GOOS-$GOARCH"
    },
    "files":
        [
        {"includePattern": "binaries/(.*)", "uploadPattern":"\$1"}
        ],
    "publish": true
}
EOF