2020-09-22 20:55:47 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: compliance
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: gradle:6.6
|
|
|
|
commands:
|
|
|
|
- gradle build
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
2020-09-22 21:31:14 +00:00
|
|
|
- push
|
2020-09-22 20:55:47 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: gitea-release
|
|
|
|
pull: always
|
2020-09-22 21:28:33 +00:00
|
|
|
image: jolheiser/drone-gitea-main:latest
|
|
|
|
settings:
|
|
|
|
token:
|
2020-09-22 20:55:47 +00:00
|
|
|
from_secret: gitea_token
|
2020-09-22 21:28:33 +00:00
|
|
|
base: https://git.etztech.xyz
|
2020-09-22 20:55:47 +00:00
|
|
|
files:
|
|
|
|
- "build/libs/*.jar"
|
|
|
|
|
|
|
|
- name: gitea-prune
|
|
|
|
pull: always
|
|
|
|
image: jolheiser/drone-gitea-prune:latest
|
|
|
|
settings:
|
|
|
|
base: https://git.etztech.xyz
|
|
|
|
token:
|
|
|
|
from_secret: gitea_token
|