Skip to content

Commit

Permalink
better naming with version
Browse files Browse the repository at this point in the history
  • Loading branch information
snoach committed Jul 29, 2014
1 parent 00e01c9 commit 30de585
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Requires fpm: https://github.com/jordansissel/fpm
#

release_version="1.0.4"
release_dir=/tmp/orchestrator-release
release_files_dir=$release_dir/orchestrator
rm -rf $release_dir/*
Expand All @@ -18,7 +19,10 @@ go build -o $release_files_dir/orchestrator ./src/github.com/outbrain/orchestrat

cd $release_dir
# tar packaging
tar cfz orchestrator.tar.gz ./orchestrator
tar cfz orchestrator-"${release_version}".tar.gz ./orchestrator
# rpm packaging
fpm -f -s dir -t rpm -n orchestrator -C $release_dir --prefix=/usr/local ./orchestrator
fpm -f -s dir -t deb -n orchestrator -C $release_dir --prefix=/usr/local ./orchestrator
fpm -v "${release_version}" -f -s dir -t rpm -n orchestrator -C $release_dir --prefix=/usr/local ./orchestrator
fpm -v "${release_version}" -f -s dir -t deb -n orchestrator -C $release_dir --prefix=/usr/local ./orchestrator

echo "---"
echo "Done. Find releases in $release_dir"

0 comments on commit 30de585

Please # to comment.