diff --git a/docs/modules/continuous-integration/nav.adoc b/docs/modules/continuous-integration/nav.adoc index 9b655bc..1f2dd1d 100644 --- a/docs/modules/continuous-integration/nav.adoc +++ b/docs/modules/continuous-integration/nav.adoc @@ -5,3 +5,4 @@ ** xref:codefresh.adoc[] ** xref:gitlab-ci.adoc[] ** xref:cirrus-ci.adoc[] +** xref:drone.adoc[] diff --git a/docs/modules/continuous-integration/pages/drone.adoc b/docs/modules/continuous-integration/pages/drone.adoc new file mode 100644 index 0000000..1807ae1 --- /dev/null +++ b/docs/modules/continuous-integration/pages/drone.adoc @@ -0,0 +1,37 @@ += Drone + +You can setup JReleaser to run with link:https://www.drone.io/[Drone]. + +NOTE: If you're already building with either Maven or Gradle then you might use the +xref:tools:jreleaser-maven.adoc[] or the xref:tools:jreleaser-gradle.adoc[] instead. + +[source,yaml] +[subs="+macros"] +..drone.yml +---- +kind: pipeline +name: default + +steps: + - name: fetch + image: docker:git + commands: + - git fetch --tags + + - name: test + image: maven:3-jdk-10 + commands: + - mvn -B verify + + - name: release + image: jreleaser/jreleaser-slim:latest + environment: + JRELEASER_GITHUB_TOKEN: + from_secret: github_token + commands: + - jreleaser full-release +---- + +NOTE: You'll need to create link:https://docs.drone.io/secret/[secrets] to store `JRELEASER_GITHUB_TOKEN` and any other +secrets for JReleaser to access the GitHub API and other sensitive data. + diff --git a/docs/modules/continuous-integration/pages/index.adoc b/docs/modules/continuous-integration/pages/index.adoc index ede949e..e19bfec 100644 --- a/docs/modules/continuous-integration/pages/index.adoc +++ b/docs/modules/continuous-integration/pages/index.adoc @@ -8,4 +8,5 @@ in the future: * xref:circle-ci.adoc[] * xref:codefresh.adoc[] * xref:gitlab-ci.adoc[] -* xref:cirrus-ci.adoc[] \ No newline at end of file +* xref:cirrus-ci.adoc[] +* xref:drone.adoc[] \ No newline at end of file