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
|
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.2.1
|
|
|
|
|
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
|
2023-09-22 17:35:35 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/markdownlint:0.37.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
|
2023-08-21 14:11:54 +00:00
|
|
|
image: docker.io/golangci/golangci-lint:v1.54.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-07-08 19:31:30 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
|
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
|
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.2.1
|
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
- name: unit-test
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
2023-09-24 19:02:51 +00:00
|
|
|
image: docker.io/library/golang:1.21.1
|
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
|
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.2.1
|
|
|
|
|
2022-03-11 09:34:55 +00:00
|
|
|
- name: unit-test
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
2023-09-24 19:02:51 +00:00
|
|
|
image: docker.io/library/golang:1.21.1
|
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
|