2022-03-11 09:34:55 +00:00
|
|
|
---
|
2021-04-23 14:02:15 +00:00
|
|
|
kind: pipeline
|
2022-03-11 09:34:55 +00:00
|
|
|
type: kubernetes
|
|
|
|
name: linter
|
|
|
|
|
2023-06-09 06:29:32 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2021-04-23 14:02:15 +00:00
|
|
|
steps:
|
2023-06-09 06:29:32 +00:00
|
|
|
- name: clone
|
2024-12-03 17:14:50 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.4.0
|
2023-06-09 06:29:32 +00:00
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
- name: markdown lint
|
2021-04-23 14:02:15 +00:00
|
|
|
commands:
|
2022-03-11 09:34:55 +00:00
|
|
|
- markdownlint *.md
|
2024-12-03 14:14:51 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/markdownlint:0.43.0
|
2022-03-11 09:34:55 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2022-11-10 22:12:58 +00:00
|
|
|
cpu: 150
|
|
|
|
memory: 150M
|
2022-03-11 09:34:55 +00:00
|
|
|
|
2022-03-11 09:51:55 +00:00
|
|
|
- name: golangci lint
|
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
2024-03-28 20:09:12 +00:00
|
|
|
image: docker.io/golangci/golangci-lint:v1.57.2-alpine
|
2022-03-11 09:34:55 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2022-11-10 22:12:58 +00:00
|
|
|
cpu: 500
|
|
|
|
memory: 1G
|
2022-03-11 09:34:55 +00:00
|
|
|
|
|
|
|
- name: email-notification
|
2021-04-26 06:33:19 +00:00
|
|
|
environment:
|
2022-11-10 22:12:58 +00:00
|
|
|
SMTP_FROM_ADDRESS:
|
|
|
|
from_secret: smtp_from_address
|
|
|
|
SMTP_FROM_NAME:
|
|
|
|
from_secret: smtp_from_name
|
|
|
|
SMTP_HOST:
|
2022-03-11 09:34:55 +00:00
|
|
|
from_secret: smtp_host
|
2022-11-10 22:12:58 +00:00
|
|
|
SMTP_USERNAME:
|
2022-03-11 09:34:55 +00:00
|
|
|
from_secret: smtp_username
|
2022-11-10 22:12:58 +00:00
|
|
|
SMTP_PASSWORD:
|
2022-03-11 09:34:55 +00:00
|
|
|
from_secret: smtp_password
|
2023-10-03 08:04:19 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/drone-email:0.1.5
|
2022-03-11 09:34:55 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2022-11-10 22:12:58 +00:00
|
|
|
cpu: 150
|
|
|
|
memory: 150M
|
2021-04-26 06:33:19 +00:00
|
|
|
when:
|
2022-03-11 09:34:55 +00:00
|
|
|
status:
|
|
|
|
- changed
|
|
|
|
- failure
|
2021-04-26 06:33:19 +00:00
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: unit-test-amd64
|
|
|
|
|
2023-06-09 06:29:32 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
depends_on:
|
|
|
|
- linter
|
|
|
|
|
2022-11-10 22:12:58 +00:00
|
|
|
node_selector:
|
|
|
|
kubernetes.io/arch: amd64
|
2022-03-11 09:34:55 +00:00
|
|
|
|
|
|
|
steps:
|
2023-06-09 06:29:32 +00:00
|
|
|
- name: clone
|
2024-12-03 17:14:50 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.4.0
|
2023-06-09 06:29:32 +00:00
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
- name: unit-test
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
2024-12-04 02:10:08 +00:00
|
|
|
image: docker.io/library/golang:1.23.4
|
2022-03-11 09:34:55 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 250
|
|
|
|
memory: 500M
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-07-08 14:46:17 +00:00
|
|
|
type: docker
|
2022-03-11 09:34:55 +00:00
|
|
|
name: unit-test-arm64
|
|
|
|
|
2023-06-09 06:29:32 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
depends_on:
|
|
|
|
- linter
|
|
|
|
|
2023-07-08 14:46:17 +00:00
|
|
|
# node_selector:
|
|
|
|
# kubernetes.io/arch: arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
2022-03-11 09:34:55 +00:00
|
|
|
|
|
|
|
steps:
|
2023-06-09 06:29:32 +00:00
|
|
|
- name: clone
|
2024-12-03 17:14:50 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.4.0
|
2023-06-09 06:29:32 +00:00
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
- name: unit-test
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
2024-12-04 02:10:08 +00:00
|
|
|
image: docker.io/library/golang:1.23.4
|
2023-07-08 14:46:17 +00:00
|
|
|
# resources:
|
|
|
|
# limits:
|
|
|
|
# cpu: 250
|
|
|
|
# memory: 500M
|
2022-03-11 09:34:55 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|