2020-08-12 17:03:31 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: compliance
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
2021-02-22 18:27:49 +00:00
|
|
|
image: golang:1.16
|
2020-08-12 17:03:31 +00:00
|
|
|
commands:
|
|
|
|
- make test
|
2021-02-22 18:27:49 +00:00
|
|
|
- make build
|
2020-08-12 17:03:31 +00:00
|
|
|
- name: check
|
|
|
|
pull: always
|
2021-02-22 18:27:49 +00:00
|
|
|
image: golang:1.16
|
2020-08-12 17:03:31 +00:00
|
|
|
commands:
|
2020-09-07 22:47:01 +00:00
|
|
|
- make vet
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release
|
|
|
|
trigger:
|
|
|
|
event:
|
2020-09-08 03:57:03 +00:00
|
|
|
- push
|
|
|
|
branch:
|
2021-01-09 02:53:01 +00:00
|
|
|
- main
|
2020-09-07 22:47:01 +00:00
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
2021-02-22 18:27:49 +00:00
|
|
|
image: golang:1.16
|
2020-09-07 22:47:01 +00:00
|
|
|
commands:
|
2021-02-22 18:27:49 +00:00
|
|
|
- make build
|
2020-09-07 22:47:01 +00:00
|
|
|
- name: gitea-release
|
|
|
|
pull: always
|
2020-09-08 03:57:03 +00:00
|
|
|
image: jolheiser/drone-gitea-main:latest
|
2020-09-07 22:47:01 +00:00
|
|
|
settings:
|
2020-09-08 03:57:03 +00:00
|
|
|
token:
|
2020-09-07 22:47:01 +00:00
|
|
|
from_secret: gitea_token
|
2020-09-08 04:01:09 +00:00
|
|
|
base: https://git.etztech.xyz
|
2020-09-07 22:47:01 +00:00
|
|
|
files:
|
2020-09-08 03:57:03 +00:00
|
|
|
- "sedbot"
|