Switch from Jenkins to Drone

master
Graham 5 years ago
parent 2c2b288f59
commit 5d325127a2
  1. 39
      .drone.yml
  2. 2
      .editorconfig
  3. 1
      .gitignore
  4. 2
      README.md

@ -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 <<EOF > $${HOME}/.m2/settings.xml
<settings>
<servers>
<server>
<id>openrs2</id>
<username><![CDATA[$${REPO_USERNAME}]]></username>
<password><![CDATA[$${REPO_PASSWORD}]]></password>
</server>
<server>
<id>openrs2-snapshots</id>
<username><![CDATA[$${REPO_USERNAME}]]></username>
<password><![CDATA[$${REPO_PASSWORD}]]></password>
</server>
</servers>
</settings>
EOF
- mvn deploy
environment:
REPO_USERNAME:
from_secret: repo_username
REPO_PASSWORD:
from_secret: repo_password
when:
branch:
- master

@ -7,6 +7,6 @@ trim_trailing_whitespace = true
max_line_length = 120 max_line_length = 120
indent_style = tab indent_style = tab
[*.xml] [*.{xml,yaml,yml}]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2

1
.gitignore vendored

@ -1,4 +1,5 @@
.* .*
!.drone.yml
!.editorconfig !.editorconfig
!.git* !.git*
!.mailmap !.mailmap

@ -1,6 +1,6 @@
# OpenRS2 All Natives # OpenRS2 All Natives
[![Build status badge](https://build.openrs2.dev/buildStatus/icon?job=openrs2-natives-all&build=lastCompleted)](https://build.openrs2.dev/job/openrs2-natives-all/) [![Build status badge](https://build.openrs2.dev/api/badges/openrs2/openrs2-natives-all/status.svg)](https://build.openrs2.dev/openrs2/openrs2-natives-all/)
## License ## License

Loading…
Cancel
Save