From 73752a404c63fdfc0b132d1be891f80d66b4dca8 Mon Sep 17 00:00:00 2001 From: Ryan Skraba Date: Tue, 19 Sep 2023 21:03:06 +0200 Subject: [PATCH] AVRO-3858: Configure the build signing script (#2498) --- build.sh | 8 +++++++- pom.xml | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 09b02f8da06..ea845abd163 100755 --- a/build.sh +++ b/build.sh @@ -211,7 +211,13 @@ do \! -name '*.asc' \! -name '*.txt' ); do (cd "${f%/*}" && shasum -a 512 "${f##*/}") > "$f.sha512" - gpg --passphrase "$password" --armor --output "$f.asc" --detach-sig "$f" + + if [ -z "$GPG_LOCAL_USER" ]; then + gpg --pinentry-mode loopback --passphrase "$password" --armor --output "$f.asc" --detach-sig "$f" + else + gpg --pinentry-mode loopback --local-user="$GPG_LOCAL_USER" --passphrase "$password" --armor --output "$f.asc" --detach-sig "$f" + fi + done set -x diff --git a/pom.xml b/pom.xml index 12fc7954a5b..6868dacf780 100644 --- a/pom.xml +++ b/pom.xml @@ -319,6 +319,12 @@ sign + + + --pinentry-mode + loopback + +