Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
f565800a
Commit
f565800a
authored
May 18, 2018
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: script for tagging and pushing a release
parent
a73365c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
scripts/tag_release.sh
+40
-0
No files found.
scripts/tag_release.sh
0 → 100755
View file @
f565800a
#/bin/bash
# abort if we get any error
set
-e
_tag
=
$1
_branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
if
[
"
${
_tag
}
"
==
""
]
;
then
echo
"Missing version param. ex './scripts/tag_release.sh v5.1.1'"
exit
1
fi
if
[
"
${
_branch
}
"
==
"master"
]
;
then
echo
"you cannot tag releases from the master branch"
echo
"please checkout the release branch"
echo
"ex 'git checkout v5.1.x'"
exit
1
fi
# always make sure to pull latest changes from origin
echo
"pulling latest changes from
${
_branch
}
"
git pull origin
${
_branch
}
# create signed tag for latest commit
git tag
-s
"
${
_tag
}
"
-m
"release
${
_tag
}
"
# verify the signed tag
git tag
-v
"
${
_tag
}
"
echo
"Make sure the tag is signed as expected"
echo
"press [y] to push the tags"
read
-n
1 confirm
if
[
"
${
confirm
}
"
==
"y"
]
;
then
git push origin
"
${
_branch
}
"
--tags
else
echo
"Abort! "
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment