2023-02-17 18:47:08 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2023-07-18 19:15:07 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
- tag
|
|
|
|
|
2023-02-17 18:47:08 +00:00
|
|
|
steps:
|
|
|
|
- name: Lint
|
|
|
|
image: docker.io/golangci/golangci-lint:latest
|
|
|
|
environment:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
CGO_ENABLED: "0"
|
|
|
|
GOMEMLIMIT: "1150MiB"
|
|
|
|
commands:
|
|
|
|
- golangci-lint run -v
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
image: docker.io/golang:1.20-buster
|
|
|
|
commands:
|
|
|
|
- go mod download
|
2023-07-18 18:36:33 +00:00
|
|
|
- go run gotest.tools/gotestsum@latest -f pkgname-and-test-fails -- -race -shuffle=on ./...
|
|
|
|
|
|
|
|
---
|
2023-07-18 19:04:37 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: housekeeping
|
2023-07-18 18:36:33 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
cron:
|
2023-07-18 19:04:37 +00:00
|
|
|
- housekeeping
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Renovate
|
|
|
|
image: code.icb4dc0.de/prskr/ci-images/renovate:latest
|
|
|
|
commands:
|
|
|
|
- renovate "${DRONE_REPO}"
|
|
|
|
environment:
|
|
|
|
RENOVATE_TOKEN:
|
|
|
|
from_secret: gitea_token
|
|
|
|
GITHUB_COM_TOKEN:
|
|
|
|
from_secret: github_token
|
|
|
|
RENOVATE_PLATFORM: gitea
|
|
|
|
RENOVATE_AUTODISCOVER: "false"
|
|
|
|
RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1
|
|
|
|
LOG_LEVEL: info
|