Fix pipeline

This commit is contained in:
Dave Syer
2023-01-16 09:20:57 +00:00
parent 04686d7d5b
commit f55cb56528
3 changed files with 52 additions and 22 deletions

View File

@@ -1,24 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<profiles>
<profile>
<id>release</id>
<activation><activeByDefault>true</activeByDefault></activation>
<properties>
<gpg.passphrase>${env.passphrase}</gpg.passphrase>
</properties>
</profile>
</profiles>
<servers>
<server>
<id>sonatype-nexus-staging</id>
<username>${env.sonatype_username}</username>
<password>${env.sonatype_password}</password>
</server>
<server>
<id>repo.spring.io</id>
<username>${env.spring_username}</username>
<password>${env.spring_password}</password>
</server>
</servers>
</settings>
<profiles>
<profile>
<id>release</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.passphrase>${env.passphrase}</gpg.passphrase>
</properties>
</profile>
</profiles>
<servers>
<server>
<id>sonatype-nexus-staging</id>
<username>${env.sonatype_username}</username>
<password>${env.sonatype_password}</password>
</server>
<server>
<id>repo.spring.io</id>
<username>${env.spring_username}</username>
<password>${env.spring_password}</password>
</server>
<server>
<id>spring-libs-milestones</id>
<username>${env.spring_username}</username>
<password>${env.spring_password}</password>
</server>
<server>
<id>spring-libs-snapshots</id>
<username>${env.spring_username}</username>
<password>${env.spring_password}</password>
</server>
<server>
<id>spring-libs-releases</id>
<username>${env.spring_username}</username>
<password>${env.spring_password}</password>
</server>
<server>
<id>spring-libs-plugins</id>
<username>${env.spring_username}</username>
<password>${env.spring_password}</password>
</server>
</servers>
</settings>

View File

@@ -114,6 +114,8 @@ jobs:
- |
rm -rf ~/.m2
ln -s $(pwd)/.m2 ~/.m2
echo "((signing-key))" > private.asc
gpg --import --batch --no-tty private.asc
./mvnw deploy -DskipTests -s .mvn/settings.xml
params:
TERM: dumb

View File

@@ -283,6 +283,12 @@ limitations under the License.
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--batch</arg>
<arg>--pinentry-mode=loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>