-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
92 lines (82 loc) · 1.9 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
trigger:
branch:
- main
event:
- push
- pull_request
- tag
steps:
- name: Vulnerabilities
image: code.icb4dc0.de/inetmock/ci-images/go-ci
commands:
- go run github.com/magefile/mage -d build -w . generate
- go run golang.org/x/vuln/cmd/govulncheck@latest -tags "$${GO_BUILD_TAGS}" ./...
environment:
GO_BUILD_TAGS: sudo,integration
volumes:
- name: go-cache
path: /go
- name: Lint
image: code.icb4dc0.de/inetmock/ci-images/go-ci
commands:
- go run github.com/magefile/mage -d build -w . lint
volumes:
- name: go-cache
path: /go
- name: Tests
image: code.icb4dc0.de/inetmock/ci-images/go-ci
privileged: true
network_mode: host
commands:
- mount -t debugfs debugfs /sys/kernel/debug
- go run github.com/magefile/mage -d build -w . testAll
- go run github.com/magefile/mage -d build -w . integrationTests
environment:
DOCKER_HOST: tcp://localhost:2375
TC_DISABLE_REAPER: 'true'
volumes:
- name: go-cache
path: /go
- name: Release
image: code.icb4dc0.de/inetmock/ci-images/go-ci
when:
event:
- tag
volumes:
- name: go-cache
path: /go
commands:
- goreleaser release --rm-dist
volumes:
- name: go-cache
temp: { }
---
kind: pipeline
type: docker
name: housekeeping
trigger:
event:
- cron
cron:
- housekeeping
steps:
- name: Renovate
image: code.icb4dc0.de/prskr/ci-images/renovate:latest
commands:
- "renovate inetmock/inetmock"
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