Fixed GPG key signing issue

This commit is contained in:
Llewellyn van der Merwe 2023-02-15 15:23:45 +02:00
parent aad910fb6c
commit 5d4b672c11
Signed by: Llewellyn
GPG Key ID: A9201372263741E7

View File

@ -1043,29 +1043,23 @@ function setUserDetails () {
_echo "[info] Git author email set to: ${GIT_AUTHOR_EMAIL}"
fi
# Set signing key
if [ -n "${GIT_SIGNING_KEY+x}" ]; then
git config user.signingKey "${GIT_SIGNING_KEY}"
_echo "[info] Git signing key set to: ${GIT_SIGNING_KEY}"
fi
# Set Git GPG sign
if [ -n "${GIT_GPG_SIGN+x}" ]; then
git config commit.gpgsign "${GIT_GPG_SIGN}"
_echo "[info] Git GPG sign set to: ${GIT_GPG_SIGN}"
fi
# Set signing key
if [ -n "${GIT_SIGNING_KEY+x}" ]; then
git config commit.signingkey "${GIT_SIGNING_KEY}"
_echo "[info] Git signing key set to: ${GIT_SIGNING_KEY}"
fi
# Set Git SSH key path
if [ -n "${GIT_SSH_KEY_PATH+x}" ]; then
git config core.sshCommand "ssh -i ${GIT_SSH_KEY_PATH}"
_echo "[info] Git SSH key path set to: ${GIT_SSH_KEY_PATH}"
fi
# Set Git GPG key
if [ -n "${GIT_GPG_KEY+x}" ]; then
git config user.signingkey "${GIT_GPG_KEY}"
_echo "[info] Git GPG key set to: ${GIT_GPG_KEY}"
fi
}
# make the git commit