From 523097ce8b4c6ede3317d1143446cf41df85a27f Mon Sep 17 00:00:00 2001 From: Salim Afiune Date: Fri, 30 Jul 2021 17:28:21 -0500 Subject: [PATCH] ci: sign lacework-releng commits (#500) Signed-off-by: Salim Afiune Maya --- scripts/release.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 613749215..943ba9d9e 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -16,7 +16,7 @@ readonly package_name=lacework-cli readonly binary_name=lacework readonly docker_org=lacework readonly git_user="Lacework Inc." -readonly git_email="ops+releng@lacework.net" +readonly git_email="tech-ally@lacework.net" readonly docker_tags=( latest scratch @@ -250,9 +250,10 @@ push_release() { if [ "$CI" != "" ]; then git config --global user.email $git_email git config --global user.name $git_user + git config --global user.signingkey $GPG_SIGNING_KEY fi git checkout -B release - git commit -am "release: v$_version_no_tag" + git commit -sS -am "release: v$_version_no_tag" git push origin release -f } @@ -359,11 +360,14 @@ bump_version() { fi log "commiting and pushing the vertion bump to github" - git config --global user.email $git_email - git config --global user.name $git_user + if [ "$CI" != "" ]; then + git config --global user.email $git_email + git config --global user.name $git_user + git config --global user.signingkey $GPG_SIGNING_KEY + fi git add VERSION git add api/version.go # file genereted by scripts/version_updater.sh - git commit -m "version bump to v$VERSION" + git commit -sS -m "ci: version bump to v$VERSION" git push origin main }