2020-08-12 17:03:31 +00:00
|
|
|
---
|
|
|
|
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:
|
2020-09-07 22:47:01 +00:00
|
|
|
- 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
|