Skip to content

Commit 33b16e7

Browse files
committed
rename and using --sort=-creatordate
Signed-off-by: Pascal Andy <pascal@firepress.org>
1 parent d69341f commit 33b16e7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

runrelease.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Requires that we already and a branch tagged.
2+
# Usually via Tower
3+
4+
# This is specific to my local set up
5+
source .env .
6+
7+
# vars
8+
#GITHUB_TOKEN="3122133122133211233211233211233211322313123"
9+
#local_repo="$Users/.../docker-stack-this"
10+
user="pascalandy"
11+
git_repo="docker-stack-this"
12+
13+
14+
# The tag must be ready to push on git remote
15+
#
16+
cd ${local_repo} && \
17+
git push --tags && \
18+
19+
# Find the latest tag
20+
tag_version="$(git tag --sort=-creatordate | head -n1)" && \
21+
echo ${tag_version} && \
22+
23+
# Requires https://github.com/aktau/github-release
24+
$GOPATH/bin/github-release release \
25+
--user ${user} \
26+
--repo ${git_repo} \
27+
--tag ${tag_version} \
28+
--name ${tag_version} \
29+
--description "Refer to [CHANGELOG.md](https://github.com/pascalandy/docker-stack-this/blob/master/CHANGELOG.md) for details about this release."

0 commit comments

Comments
 (0)