1
0
mirror of https://github.com/russ-p/sqlbuilder.git synced 2026-05-06 07:56:39 +00:00

improve deploy
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
+8 -1
View File
@@ -9,7 +9,14 @@ steps:
- name: mvnrepo - name: mvnrepo
path: /root/.m2 path: /root/.m2
commands: 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: volumes:
- name: mvnrepo - name: mvnrepo
+14
View File
@@ -43,4 +43,18 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </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> </project>