support publishing snapshots from docker based ci (#8634)
motivation: automate snapshot publishing from docker based ci changes: * add local settings.xml with env variables for publishing to sonatype-nexus-snapshots * pipe UID/PWD env variable in docker compose
This commit is contained in:
parent
5e79d57b7d
commit
4153f65c85
9
.mvn/settings.xml
Normal file
9
.mvn/settings.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<settings>
|
||||
<servers>
|
||||
<server>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<username>${env.SANOTYPE_USER}</username>
|
||||
<password>${env.SANOTYPE_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
@ -31,6 +31,9 @@ services:
|
||||
|
||||
shell:
|
||||
<<: *common
|
||||
environment:
|
||||
- SANOTYPE_USER
|
||||
- SANOTYPE_PASSWORD
|
||||
volumes:
|
||||
- ~/.ssh:/root/.ssh
|
||||
- ~/.gnupg:/root/.gnupg
|
||||
|
Loading…
Reference in New Issue
Block a user