From ec0329efb126e1e4d41bcd15bf437a34cdc78e78 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 20 Jun 2020 15:42:45 -0500 Subject: [PATCH] ci: added option to sign git tags --- DEVELOPMENT.md | 2 +- docker-versions-create.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 9076767b..237baff7 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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. diff --git a/docker-versions-create.sh b/docker-versions-create.sh index 6de22938..8ed98c54 100755 --- a/docker-versions-create.sh +++ b/docker-versions-create.sh @@ -10,7 +10,7 @@ function TrapExit { batchMode=false -while getopts "hbt:" arg +while getopts "hbt:s" arg do case $arg in b) @@ -19,6 +19,9 @@ do t) tag=${OPTARG} ;; + s) + tagArgs="-s -m 'Signed during docker-versions-create" + ;; h) echo " Usage $0 [options] @@ -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