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:
24
.drone.yml
Normal file
24
.drone.yml
Normal 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
14
pom.xml
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user