Skip to content

Commit b9b6f08

Browse files
authored
- use '--pinentry-mode loopback' for cicd (#11)
1 parent 3975344 commit b9b6f08

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

pom.xml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,27 @@
110110

111111
<profiles>
112112
<profile>
113-
<id>github</id>
113+
<id>gpg-cicd</id>
114114
<activation>
115115
<property>
116-
<name>MAVEN_GPG_PASSPHRASE</name>
116+
<name>env.MAVEN_GPG_PASSPHRASE</name>
117117
</property>
118118
</activation>
119119
<build>
120-
<plugins>
121-
<plugin>
122-
<groupId>org.apache.maven.plugins</groupId>
123-
<artifactId>maven-gpg-plugin</artifactId>
124-
<configuration>
125-
<signer>bc</signer>
126-
</configuration>
127-
</plugin>
128-
</plugins>
120+
<pluginManagement>
121+
<plugins>
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-gpg-plugin</artifactId>
125+
<configuration>
126+
<gpgArguments>
127+
<arg>--pinentry-mode</arg>
128+
<arg>loopback</arg>
129+
</gpgArguments>
130+
</configuration>
131+
</plugin>
132+
</plugins>
133+
</pluginManagement>
129134
</build>
130135
</profile>
131136
<profile>

0 commit comments

Comments
 (0)