mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-20 10:55:23 +00:00
ci: added option to sign git tags
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ Several base-image variants are maintained in order to offer choices in JDK prov
|
|||||||
The [docker-versions-create.sh](docker-versions-create.sh) script is configured with the branches to maintain and is used to merge changes from the master branch into the mulit-base variant branches. The script also manages git tagging the master branch along with the merged branches. So a typical use of the script would be like:
|
The [docker-versions-create.sh](docker-versions-create.sh) script is configured with the branches to maintain and is used to merge changes from the master branch into the mulit-base variant branches. The script also manages git tagging the master branch along with the merged branches. So a typical use of the script would be like:
|
||||||
|
|
||||||
```shell script
|
```shell script
|
||||||
./docker-versions-create.sh -t 1.2.0
|
./docker-versions-create.sh -s -t 1.2.0
|
||||||
```
|
```
|
||||||
|
|
||||||
> Most often the major version will be bumped unless a bug or hotfix needs to be published in which case the patch version should be incremented.
|
> Most often the major version will be bumped unless a bug or hotfix needs to be published in which case the patch version should be incremented.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ function TrapExit {
|
|||||||
|
|
||||||
batchMode=false
|
batchMode=false
|
||||||
|
|
||||||
while getopts "hbt:" arg
|
while getopts "hbt:s" arg
|
||||||
do
|
do
|
||||||
case $arg in
|
case $arg in
|
||||||
b)
|
b)
|
||||||
@@ -19,6 +19,9 @@ do
|
|||||||
t)
|
t)
|
||||||
tag=${OPTARG}
|
tag=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
s)
|
||||||
|
tagArgs="-s -m 'Signed during docker-versions-create"
|
||||||
|
;;
|
||||||
h)
|
h)
|
||||||
echo "
|
echo "
|
||||||
Usage $0 [options]
|
Usage $0 [options]
|
||||||
@@ -28,6 +31,7 @@ Options:
|
|||||||
when any merge fails
|
when any merge fails
|
||||||
-t TAG tag and push the current revision on master with the given tag
|
-t TAG tag and push the current revision on master with the given tag
|
||||||
and apply respective tags to each branch
|
and apply respective tags to each branch
|
||||||
|
-s enable signed tags
|
||||||
-h display this help and exit
|
-h display this help and exit
|
||||||
"
|
"
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user