Skip to content

Commit

Permalink
Upload oss binary to github (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm authored Feb 4, 2019
1 parent 8f87f6e commit de20e09
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/drone/ubuntu_oss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ mkdir -p /root/.pharos/build
rubyc --openssl-dir=/etc/ssl -o "$package" -d /root/.pharos/build --make-args=--silent pharos
rm -rf /root/.pharos/build
./"$package" version

# ship to github
curl -sL https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 | tar -xjO > /usr/local/bin/github-release
chmod +x /usr/local/bin/github-release
/usr/local/bin/github-release upload \
--user kontena \
--repo pharos-cluster \
--tag "$DRONE_TAG" \
--name "$package" \
--file ./"$package"
10 changes: 10 additions & 0 deletions build/travis/macos_oss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ package="pharos-cluster-darwin-amd64-${version}+oss"
rubyc --openssl-dir=/usr/local/etc/openssl -o "$package" --make-args=--silent pharos
./"$package" version

# ship to github
curl -sL https://github.com/aktau/github-release/releases/download/v0.7.2/darwin-amd64-github-release.tar.bz2 | tar -xjO > /usr/local/bin/github-release
chmod +x /usr/local/bin/github-release
/usr/local/bin/github-release upload \
--user kontena \
--repo pharos-cluster \
--tag "$TRAVIS_TAG" \
--name "$package" \
--file ./"$package"

rm -rf upload/
mkdir -p upload
mv "$package" upload/

0 comments on commit de20e09

Please sign in to comment.