Enable deployment to repo
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Manuel Friedli 2020-10-04 23:17:37 +02:00
parent 7851f49b9a
commit 4fe450dd73
2 changed files with 25 additions and 0 deletions

View file

@ -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
View 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>