Fixed GPG key signing issue
This commit is contained in:
parent
ece6cc64fa
commit
526cf92462
18
src/octozipo
18
src/octozipo
@ -343,29 +343,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
|
||||
}
|
||||
|
||||
# setGitCommit - Makes a Git commit with a specified commit message and creates a Git tag
|
||||
|
Loading…
Reference in New Issue
Block a user