Skip to content

Commit a630b28

Browse files
committed
Update pom.xml to grab gpg passphrase from ENV var.
1 parent ff509f3 commit a630b28

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
<common.codec.version>1.14</common.codec.version>
4949
<spring.boot.version>2.3.1.RELEASE</spring.boot.version>
5050
<spring.version>5.2.8.RELEASE</spring.version>
51+
52+
<gpg.keyname>48540ECBBF00A28EACCF04E720FD12AFB0C9EBA9</gpg.keyname>
53+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
5154
</properties>
5255

5356
<licenses>
@@ -345,7 +348,14 @@ limitations under the License.
345348
<phase>verify</phase>
346349
<goals>
347350
<goal>sign</goal>
348-
</goals>
351+
</goals>
352+
<configuration>
353+
<!-- This is necessary for gpg to not try to use the pinentry programs -->
354+
<gpgArguments>
355+
<arg>--pinentry-mode</arg>
356+
<arg>loopback</arg>
357+
</gpgArguments>
358+
</configuration>
349359
</execution>
350360
</executions>
351361
</plugin>

0 commit comments

Comments
 (0)