forked from qcastel/docker-maven-release
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings-template.xml
31 lines (29 loc) · 1.12 KB
/
settings-template.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${M2_HOME_FOLDER}/repository</localRepository>
<servers>
<server>
<id>${env.DOCKER_REGISTRY_ID}</id>
<username>${env.DOCKER_REGISTRY_USERNAME}</username>
<password>${env.DOCKER_REGISTRY_PASSWORD}</password>
</server>
${MAVEN_SERVERS_XML}
</servers>
<profiles>
<!-- GPG settings -->
<profile>
<id>gpg</id>
<activation>
<activeByDefault>${env.GPG_ENABLED}</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<!-- Load passphrase from env variable -->
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
<gpg.keyname>${env.GPG_KEY_ID}</gpg.keyname>
</properties>
</profile>
</profiles>
</settings>