From 20b56754f66ad034cb8bc84b57538526e722780a Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 8 Mar 2020 17:23:34 +0000 Subject: [PATCH] Switch from Jenkins to Drone --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + README.md | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..34f0403 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: registry.openrs2.dev/openrs2-dev + commands: + - mvn clean verify + + - name: deploy + image: registry.openrs2.dev/openrs2-dev + commands: + - | + cat < $${HOME}/.m2/settings.xml + + + + openrs2 + + + + + openrs2-snapshots + + + + + + EOF + - mvn deploy + environment: + REPO_USERNAME: + from_secret: repo_username + REPO_PASSWORD: + from_secret: repo_password + when: + branch: + - master diff --git a/.gitignore b/.gitignore index 52ee3c4..62125a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .* +!.drone.yml !.editorconfig !.git* !.mailmap diff --git a/README.md b/README.md index 202b595..92e881e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # OpenRS2 Parent -[![Build status badge](https://build.openrs2.dev/buildStatus/icon?job=openrs2-parent&build=lastCompleted)](https://build.openrs2.dev/job/openrs2-parent/) +[![Build status badge](https://build.openrs2.dev/api/badges/openrs2/openrs2-parent/status.svg)](https://build.openrs2.dev/openrs2/openrs2-parent/) ## License