Skip to content

Commit

Permalink
AVRO-3858: Configure the build signing script (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSkraba authored Sep 19, 2023
1 parent afa8ea6 commit 73752a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit 73752a4

Please sign in to comment.