From 7198a9d9ae191d3833d6b435c03622e15329d0b9 Mon Sep 17 00:00:00 2001 From: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com> Date: Mon, 9 Nov 2020 01:06:52 +0100 Subject: [PATCH] TSK-1282: finally found a fix for the gpg issue --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 93376a594..a56a096bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -93,10 +93,16 @@ jobs: - stage: Release / Deploy name: release / deploy / commit + # This is necessary in order to fix some gpg issues (for signing the artifacts which will be released) + # More details: https://discuss.circleci.com/t/error-sending-to-agent-inappropriate-ioctl-for-device/17465/7 before_install: | - openssl aes-256-cbc -K "$encrypted_21a5d40e43a3_key" -iv "$encrypted_21a5d40e43a3_iv" \ + echo use-agent >> ~/.gnupg/gpg.conf \ + && echo pinentry-mode loopback >> ~/.gnupg/gpg.conf \ + && echo allow-loopback-pinentry >> ~/.gnupg/gpg-agent.conf \ + && echo RELOADAGENT | gpg-connect-agent \ + && openssl aes-256-cbc -K "$encrypted_21a5d40e43a3_key" -iv "$encrypted_21a5d40e43a3_iv" \ -in "ci/codesigning.asc.enc" -out "ci/codesigning.asc" -d \ - && gpg --batch --import "ci/codesigning.asc" \ + && gpg --batch --no-tty --yes --import "ci/codesigning.asc" \ && nvm install "$NODE_VERSION" install: ci/change_version.sh -m . && ( cd web && npm install )