Skip to content

Commit 7ce4c3a

Browse files
committed
fix gpg signing
`gpg: signing failed: Inappropriate ioctl for device` via export GPG_TTY=$(tty) Signed-off-by: Peter Kirschner <[email protected]>
1 parent 684f535 commit 7ce4c3a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/scripts/ci-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ if [[ -n "${GPG_PRIVATE_KEY}" && -n "${GPG_PASSPHRASE}" ]]; then
1313

1414
echo -e "#\n# list secret keys\n#\n"
1515
gpg --list-secret-keys --keyid-format LONG
16+
export GPG_TTY=$(tty)
1617
fi
1718

1819
# build

cnf/build.bnd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ Bundle-Version: ${base.version}.${tstamp}-SNAPSHOT
4646
-groupid: biz.aQute.bnd
4747
-pom: version=${if;${def;-snapshot};${versionmask;===;${@version}}-${def;-snapshot};${versionmask;===s;${@version}}}
4848
-maven-release: pom;path=JAR,javadoc;-classpath="${project.buildpath}"
49+
50+
gpg: gpg --homedir ${def;USERHOME;~}/.gnupg --pinentry-mode loopback
51+
4952
# -snapshot unset (commented out) is a snapshot build. (e.g. 6.0.0-SNAPSHOT)
5053
# -snapshot set to a value (e.g. RC1) is a release build with the value as the Maven version qualifier. (e.g. 6.0.0-RC1)
5154
# -snapshot set to the empty string is a release build with no Maven version qualifier. (e.g. 6.0.0)

0 commit comments

Comments
 (0)