Skip to content

Commit d78dcea

Browse files
committed
cleaner script
Signed-off-by: Pascal Andy <pascal@firepress.org>
1 parent b21424e commit d78dcea

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

runversion.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ set -o pipefail # Use last non-zero exit code in a pipeline
1010

1111

1212
##################################################
13-
tag_version=$1 && \
13+
# run the script an pass an ARG like '2.3.0'
14+
tag_version=$1
15+
16+
# tag and commit our latest commit
1417
git tag ${tag_version} && \
1518
git push --tags;
1619

17-
# This is specific to my local set up
20+
# load secrets
1821
source .env .
19-
#GITHUB_TOKEN="3122133122133211233211233211233211322313123"
20-
#local_repo="$Users/.../docker-stack-this"
22+
2123
user="pascalandy"
2224
git_repo="docker-stack-this"
25+
GOPATH=$(go env GOPATH)
2326

2427
# Requires https://github.com/aktau/github-release
2528
$GOPATH/bin/github-release release \
@@ -30,5 +33,5 @@ $GOPATH/bin/github-release release \
3033
--description "Refer to [CHANGELOG.md](https://github.com/pascalandy/docker-stack-this/blob/master/CHANGELOG.md) for details about this release."
3134

3235
# Find the latest tag
33-
#tag_version="$(git tag --sort=-creatordate | head -n1)" && \
34-
#echo ${tag_version} && \
36+
# We could add this logic: minor or major. Then the system will manage the SEMVERSION automatically
37+
# tag_version="$(git tag --sort=-creatordate | head -n1)" && echo ${tag_version}

0 commit comments

Comments
 (0)