Skip to content

Commit

Permalink
Update release packaging names
Browse files Browse the repository at this point in the history
Former-commit-id: b19d0b8
  • Loading branch information
suizman committed Aug 9, 2019
1 parent fdc1022 commit e0ee06f
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions goreleaser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,21 @@ else
Date=$(date --utc +'%Y/%m/%dT%XUTC')
fi

mkdir -p dist
mkdir -p dist/qed

echo "Building binary"
go build -ldflags="-s -w -X github.com/bbva/qed/build.tag=${Tag} -X github.com/bbva/qed/build.rev=${FullCommit} -X github.com/bbva/qed/build.utcTime=${Date}" -o dist/qed

cp README.rst dist/README.rst
cp LICENSE dist/LICENSE

tar -C dist -zcvf qed_${Tag}_linux_amd64.tar.gz .
mv qed_${Tag}_linux_amd64.tar.gz dist
md5sum dist/qed_${Tag}_linux_amd64.tar.gz > dist/qed_${Tag}_checksum.txt
go build -ldflags="-s -w \
-X github.com/bbva/qed/build.tag=${Tag} \
-X github.com/bbva/qed/build.rev=${FullCommit} \
-X github.com/bbva/qed/build.utcTime=${Date}" \
-o dist/qed/qed

cp README.rst dist/qed/README.rst
cp LICENSE dist/qed/LICENSE

tar -C dist -zcvf qed-${Tag}-linux-amd64.tar.gz .
mv qed-${Tag}-linux-amd64.tar.gz dist
md5sum dist/qed-${Tag}-linux-amd64.tar.gz > dist/qed-${Tag}-checksum.txt

if [ "$?" != 0 ]
then
Expand Down

0 comments on commit e0ee06f

Please sign in to comment.