From 4fe450dd73beca9caf276a9514d58b525d90097b Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sun, 4 Oct 2020 23:17:37 +0200 Subject: [PATCH] Enable deployment to repo --- .drone.yml | 13 +++++++++++++ maven-settings.xml | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 maven-settings.xml diff --git a/.drone.yml b/.drone.yml index 525b7f6..e8f521b 100644 --- a/.drone.yml +++ b/.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 diff --git a/maven-settings.xml b/maven-settings.xml new file mode 100644 index 0000000..215e629 --- /dev/null +++ b/maven-settings.xml @@ -0,0 +1,12 @@ + + + + + repo.gittr.ch + ${env.REPO_USERNAME} + ${env.REPO_TOKEN} + + +