Unverified Commit d69fae20 authored by Sylvain Desbureaux's avatar Sylvain Desbureaux
Browse files

fix(gpg): create base folder if not present



On newest node docker images, `${HOME}/.gnupg` folder is not present and
the script fails.
Be sure to create the folder and needed files in it before importing
key.

closes #32

Signed-off-by: default avatarSylvain Desbureaux <sylvain.desbureaux@orange.com>
parent 217d2222
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -576,6 +576,11 @@ stages:

    log_info "Setting commit signing up."

    if [[ ! -f "${HOME}/.gnupg" ]]; then
      log_info "creating GPG base configuration"
      gpg -k
    fi

    if [[ ! -f "${SEMREL_GPG_SIGNKEY}" ]]; then
      fail "SEMREL_GPG_SIGNKEY is not a file."
    fi