This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yuriy Bogdanov
committed
Jan 29, 2016
1 parent
8d4be2d
commit 2d8fe89
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# | ||
# Don't forget to generate and commit changelog before making a release | ||
# CHANGELOG_GITHUB_TOKEN=XXX github_changelog_generator --since-tag 1.1.0 --base CHANGELOG.md --no-issues | ||
# | ||
|
||
VERSION=`cat VERSION` | ||
LAST_TAG=`git describe --abbrev=0 --tags 2>/dev/null` | ||
|
||
GITHUB_USER=grammarly | ||
GITHUB_REPO=rocker | ||
|
||
docker run --rm -ti \ | ||
-e GITHUB_TOKEN=$GITHUB_TOKEN \ | ||
-v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \ | ||
-v `pwd`/dist:/dist \ | ||
dockerhub.grammarly.io/tools/github-release:master release \ | ||
--user $GITHUB_USER \ | ||
--repo $GITHUB_REPO \ | ||
--tag $VERSION \ | ||
--name $VERSION \ | ||
--description "https://github.com/$GITHUB_USER/$GITHUB_REPO/compare/$LAST_TAG...$VERSION" | ||
|
||
docker run --rm -ti \ | ||
-e GITHUB_TOKEN=$GITHUB_TOKEN \ | ||
-v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \ | ||
-v `pwd`/dist:/dist \ | ||
dockerhub.grammarly.io/tools/github-release:master upload \ | ||
--user $GITHUB_USER \ | ||
--repo $GITHUB_REPO \ | ||
--tag $VERSION \ | ||
--name rocker-$VERSION-linux_amd64.tar.gz \ | ||
--file ./dist/rocker_linux_amd64.tar.gz | ||
|
||
docker run --rm -ti \ | ||
-e GITHUB_TOKEN=$GITHUB_TOKEN \ | ||
-v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \ | ||
-v `pwd`/dist:/dist \ | ||
dockerhub.grammarly.io/tools/github-release:master upload \ | ||
--user $GITHUB_USER \ | ||
--repo $GITHUB_REPO \ | ||
--tag $VERSION \ | ||
--name rocker-$VERSION-darwin_amd64.tar.gz \ | ||
--file ./dist/rocker_darwin_amd64.tar.gz |