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
|
@ -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:
|
shell:
|
||||||
<<: *common
|
<<: *common
|
||||||
|
environment:
|
||||||
|
- SANOTYPE_USER
|
||||||
|
- SANOTYPE_PASSWORD
|
||||||
volumes:
|
volumes:
|
||||||
- ~/.ssh:/root/.ssh
|
- ~/.ssh:/root/.ssh
|
||||||
- ~/.gnupg:/root/.gnupg
|
- ~/.gnupg:/root/.gnupg
|
||||||
|
|
Loading…
Reference in New Issue