Hush/.drone.yml

45 lines
698 B
YAML

---
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:
- push
steps:
- name: gitea-release
pull: always
image: jolheiser/drone-gitea-main:latest
settings:
token:
from_secret: gitea_token
base: https://git.etztech.xyz
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