canopeas/.drone.yml

48 lines
831 B
YAML
Raw Normal View History

---
kind: pipeline
name: compliance
trigger:
event:
- pull_request
steps:
- name: build
pull: always
image: golang:1.15
commands:
- make test
- make build-all
- name: check
pull: always
image: golang:1.15
commands:
- make vet
---
kind: pipeline
name: release
trigger:
event:
- tag
steps:
- name: build
pull: always
image: golang:1.15
commands:
- make build-all
- name: gitea-release
pull: always
image: plugins/gitea-release:1
settings:
api_key:
from_secret: gitea_token
base_url: https://git.etztech.xyz
files:
- "sedbot"
- name: gitea-prune
pull: always
image: jolheiser/dgrp:latest
settings:
base: https://git.etztech.xyz
token:
from_secret: gitea_token
keep: 2