Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -576,6 +576,11 @@ stages: ...@@ -576,6 +576,11 @@ stages:
log_info "Setting commit signing up." 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 if [[ ! -f "${SEMREL_GPG_SIGNKEY}" ]]; then
fail "SEMREL_GPG_SIGNKEY is not a file." fail "SEMREL_GPG_SIGNKEY is not a file."
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment