This commit is contained in:
parent
7851f49b9a
commit
4fe450dd73
2 changed files with 25 additions and 0 deletions
13
.drone.yml
13
.drone.yml
|
@ -13,3 +13,16 @@ steps:
|
|||
include:
|
||||
- master
|
||||
- feature/*
|
||||
- name: deploy
|
||||
image: maven:3.6-jdk-11
|
||||
environment:
|
||||
REPO_USERNAME:
|
||||
from_secret: repo-username
|
||||
REPO_TOKEN:
|
||||
from_secret: repo-token
|
||||
commands:
|
||||
- mvn -s maven-settings.xml deploy
|
||||
when:
|
||||
branch:
|
||||
include:
|
||||
- master
|
||||
|
|
12
maven-settings.xml
Normal file
12
maven-settings.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
|
||||
xmlns="http://maven.apache.org/SETTINGS/1.1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<servers>
|
||||
<server>
|
||||
<id>repo.gittr.ch</id>
|
||||
<username>${env.REPO_USERNAME}</username>
|
||||
<password>${env.REPO_TOKEN}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
Loading…
Reference in a new issue