1
0
mirror of https://github.com/russ-p/external-sql.git synced 2025-12-13 17:04:24 +00:00

add CI config

This commit is contained in:
2021-08-15 13:23:53 +03:00
parent 6e72ef07ab
commit 845b4f4f8c
2 changed files with 38 additions and 0 deletions

24
.drone.yml Normal file
View File

@@ -0,0 +1,24 @@
kind: pipeline
name: default
steps:
- name: install
image: maven:3.6.1-jdk-8-slim
volumes:
- name: mvnrepo
path: /root/.m2
commands:
- 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
host:
path: /media/data/storage/.m2

14
pom.xml
View File

@@ -49,4 +49,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>