1
0
mirror of https://github.com/russ-p/sqlbuilder.git synced 2025-12-13 16:54:24 +00:00

improve deploy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-15 13:10:31 +03:00
parent a723e4cf2b
commit 5d1c92425e
2 changed files with 22 additions and 1 deletions

View File

@@ -9,7 +9,14 @@ steps:
- name: mvnrepo
path: /root/.m2
commands:
- mvn install
- mvn install deploy -Ddeployment.releases.id=$DEPREPO -Ddeployment.releases.url=$DEPREPOURL -Ddeployment.snapshots.id=$DEPREPO -Ddeployment.snapshots.url=$DEPREPOSNAPURL
environment:
DEPREPO:
from_secret: deprepo
DEPREPOURL:
from_secret: deprepourl
DEPREPOSNAPURL:
from_secret: depreposnapurl
volumes:
- name: mvnrepo

14
pom.xml
View File

@@ -43,4 +43,18 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>${deployment.releases.id}</id>
<name>Releases</name>
<url>${deployment.releases.url}</url>
</repository>
<snapshotRepository>
<id>${deployment.snapshots.id}</id>
<name>Snapshots</name>
<url>${deployment.snapshots.url}</url>
</snapshotRepository>
</distributionManagement>
</project>