2023-02-22 21:12:07 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2023-02-23 07:56:33 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
- tag
|
|
|
|
|
2023-02-22 21:12:07 +00:00
|
|
|
steps:
|
|
|
|
- name: Lint
|
|
|
|
image: docker.io/golangci/golangci-lint:latest
|
|
|
|
environment:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
CGO_ENABLED: "0"
|
|
|
|
GOMEMLIMIT: "1150MiB"
|
2023-03-05 10:36:05 +00:00
|
|
|
volumes:
|
|
|
|
- name: go-cache
|
|
|
|
path: /go
|
2023-02-22 21:12:07 +00:00
|
|
|
commands:
|
|
|
|
- golangci-lint run -v
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
image: docker.io/golang:1.20-bullseye
|
|
|
|
network_mode: host
|
|
|
|
environment:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
CGO_ENABLED: "1"
|
|
|
|
DOCKER_HOST: tcp://localhost:2375
|
2023-03-05 10:36:05 +00:00
|
|
|
volumes:
|
|
|
|
- name: go-cache
|
|
|
|
path: /go
|
2023-02-22 21:12:07 +00:00
|
|
|
commands:
|
|
|
|
- go install gotest.tools/gotestsum@latest
|
2023-03-05 10:28:20 +00:00
|
|
|
- gotestsum --junitfile out/results.xml --format pkgname-and-test-fails -- -race -shuffle=on ./...
|
|
|
|
|
|
|
|
- name: junit-reports
|
|
|
|
image: ghcr.io/rohit-gohri/drone-junit:v0
|
|
|
|
settings:
|
|
|
|
paths: out/results.xml
|
2023-02-22 21:12:07 +00:00
|
|
|
|
2023-03-05 10:36:05 +00:00
|
|
|
volumes:
|
|
|
|
- name: go-cache
|
|
|
|
temp: { }
|
|
|
|
|
2023-02-22 21:12:07 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: housekeeping
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
cron:
|
2023-02-23 07:56:33 +00:00
|
|
|
- housekeeping
|
2023-02-22 21:12:07 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Renovate
|
2023-03-01 08:13:19 +00:00
|
|
|
image: code.icb4dc0.de/prskr/ci-images/renovate:latest
|
2023-02-22 21:12:07 +00:00
|
|
|
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
|
2023-03-05 10:28:20 +00:00
|
|
|
LOG_LEVEL: info
|