File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff 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
1417git tag ${tag_version} && \
1518git push --tags;
1619
17- # This is specific to my local set up
20+ # load secrets
1821source .env .
19- # GITHUB_TOKEN="3122133122133211233211233211233211322313123"
20- # local_repo="$Users/.../docker-stack-this"
22+
2123user=" pascalandy"
2224git_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}
You can’t perform that action at this time.
0 commit comments