improve deploy
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-15 09:31:21 +03:00
parent 22768eeaeb
commit 3ed90496cd
2 changed files with 18 additions and 1 deletions
+5 -1
View File
@@ -17,10 +17,14 @@ steps:
- name: mvnrepo - name: mvnrepo
path: /root/.m2 path: /root/.m2
commands: commands:
- mvn deploy -DskipTests=true -DaltDeploymentRepository=$DEPREPO - mvn deploy -DskipTests=true -Ddeployment.releases.id=$DEPREPO -Ddeployment.releases.url=$DEPREPOURL -Ddeployment.snapshots.id=$DEPREPO -Ddeployment.snapshots.url=$DEPREPOSNAPURL
environment: environment:
DEPREPO: DEPREPO:
from_secret: deprepo from_secret: deprepo
DEPREPOURL:
from_secret: deprepourl
DEPREPOSNAPURL:
from_secret: depreposnapurl
volumes: volumes:
- name: mvnrepo - name: mvnrepo
+13
View File
@@ -54,4 +54,17 @@
</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>