Merge pull request #328 from bcl/master-signed-tags

Enable GnuPG signed tags
This commit is contained in:
Devan Goodwin 2019-07-31 08:14:13 -03:00 committed by GitHub
commit d6c7824177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -488,7 +488,13 @@ class VersionTagger(ConfigObject):
(self.project_name, new_tag,
self.relative_project_dir)
run_command('git tag -m "%s" %s' % (tag_msg, new_tag))
# Optionally gpg sign the tag
sign_tag = ""
if self.config.has_option(BUILDCONFIG_SECTION, "sign_tag"):
if self.config.getboolean(BUILDCONFIG_SECTION, "sign_tag"):
sign_tag = "-s "
run_command('git tag %s -m "%s" %s' % (sign_tag, tag_msg, new_tag))
print
info_out("Created tag: %s" % new_tag)
print(" View: git show HEAD")

View file

@ -85,6 +85,9 @@ This option controls the format used in VersionTagger. If not specified
default format would be '{component}-{version}-{release}'. It won't affect
other taggers.
sign_tag::
This boolean enables GnuPG signed tags using 'git tag -s'.
KOJI and COPR
-------------