Skip to content

Commit

Permalink
ci: added option to sign git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Jun 20, 2020
1 parent 477caa1 commit ec0329e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```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.
Expand Down
6 changes: 5 additions & 1 deletion docker-versions-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function TrapExit {

batchMode=false

while getopts "hbt:" arg
while getopts "hbt:s" arg
do
case $arg in
b)
Expand All @@ -19,6 +19,9 @@ do
t)
tag=${OPTARG}
;;
s)
tagArgs="-s -m 'Signed during docker-versions-create"
;;
h)
echo "
Usage $0 [options]
Expand All @@ -28,6 +31,7 @@ Options:
when any merge fails
-t TAG tag and push the current revision on master with the given tag
and apply respective tags to each branch
-s enable signed tags
-h display this help and exit
"
exit
Expand Down

0 comments on commit ec0329e

Please sign in to comment.