Skip to content

Commit

Permalink
Add drone CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Aug 22, 2022
1 parent 9922788 commit 7127b1a
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
kind: pipeline
name: build

platform:
os: linux
arch: amd64

steps:
- name: test
image: amazoncorretto:8
volumes:
- name: deps
path: /root/.m2
commands:
- chmod +x mvnw
- ./mvnw test -B

- name: build
image: amazoncorretto:8
volumes:
- name: deps
path: /root/.m2
commands:
- chmod +x mvnw
- ./mvnw package -Dmaven.test.skip -Dcheckstyle.skip -B

- name: release
image: node:14
commands:
- chmod +x mvnw
- npx semantic-release
environment:
GITHUB_TOKEN:
from_secret: github_token
when:
event:
exclude:
- tag

volumes:
- name: deps
temp: {}
24 changes: 24 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"tagFormat": "${version}",
"branches": [
{
"name": "master"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"successComment": false,
"failComment": false,
"assets": [
{
"path": "target/*.jar"
}
]
}
]
]
}

0 comments on commit 7127b1a

Please sign in to comment.