File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments