2022-02-09 21:54:28 +00:00
|
|
|
---
|
2020-06-10 19:16:50 +00:00
|
|
|
kind: pipeline
|
2022-02-09 21:54:28 +00:00
|
|
|
type: kubernetes
|
|
|
|
name: linter
|
|
|
|
|
2023-06-08 19:44:21 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2022-02-09 21:54:28 +00:00
|
|
|
platform:
|
|
|
|
os: linux
|
2020-06-10 19:16:50 +00:00
|
|
|
|
|
|
|
steps:
|
2023-06-08 19:44:21 +00:00
|
|
|
- name: clone
|
2023-10-03 08:05:19 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.3.1
|
2023-06-08 19:44:21 +00:00
|
|
|
|
2022-02-09 21:54:28 +00:00
|
|
|
- name: markdown lint
|
2020-06-10 19:16:50 +00:00
|
|
|
commands:
|
2022-02-09 21:54:28 +00:00
|
|
|
- markdownlint *.md
|
2024-01-28 23:10:03 +00:00
|
|
|
image: docker.io/volkerraschek/markdownlint:0.39.0
|
2022-02-09 21:54:28 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 50
|
|
|
|
memory: 50M
|
|
|
|
|
|
|
|
- name: email-notification
|
|
|
|
environment:
|
2022-08-22 10:35:35 +00:00
|
|
|
SMTP_FROM_ADDRESS:
|
|
|
|
from_secret: smtp_from_address
|
|
|
|
SMTP_FROM_NAME:
|
|
|
|
from_secret: smtp_from_name
|
|
|
|
SMTP_HOST:
|
2022-02-09 21:54:28 +00:00
|
|
|
from_secret: smtp_host
|
2022-08-22 10:35:35 +00:00
|
|
|
SMTP_USERNAME:
|
2022-02-09 21:54:28 +00:00
|
|
|
from_secret: smtp_username
|
2022-08-22 10:35:35 +00:00
|
|
|
SMTP_PASSWORD:
|
2022-02-09 21:54:28 +00:00
|
|
|
from_secret: smtp_password
|
2023-10-03 09:09:28 +00:00
|
|
|
image: docker.io/volkerraschek/drone-email:0.1.5
|
2022-02-09 21:54:28 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 50
|
|
|
|
memory: 25M
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- changed
|
|
|
|
- failure
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2022-03-18 17:59:06 +00:00
|
|
|
include:
|
|
|
|
- pull_request
|
|
|
|
- push
|
2022-02-09 21:54:28 +00:00
|
|
|
exclude:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: unit-test-amd64
|
|
|
|
|
2023-06-08 19:44:21 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2022-02-09 21:54:28 +00:00
|
|
|
depends_on:
|
|
|
|
- linter
|
|
|
|
|
|
|
|
platform:
|
2023-05-29 09:12:52 +00:00
|
|
|
arch: amd64
|
2022-02-09 21:54:28 +00:00
|
|
|
|
|
|
|
steps:
|
2023-06-08 19:44:21 +00:00
|
|
|
- name: clone
|
2023-10-03 08:05:19 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.3.1
|
2023-06-08 19:44:21 +00:00
|
|
|
|
2022-02-09 21:54:28 +00:00
|
|
|
- name: unit-test
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
2024-04-03 19:47:44 +00:00
|
|
|
image: docker.io/library/golang:1.22.2
|
2022-03-17 18:03:16 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
- name: postgres
|
2024-02-13 02:05:55 +00:00
|
|
|
image: docker.io/library/postgres:16.2-alpine
|
2022-03-17 18:03:16 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: postgres
|
2022-02-09 21:54:28 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
2020-06-10 19:16:50 +00:00
|
|
|
- tag
|
|
|
|
|
2022-02-09 21:54:28 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: unit-test-arm64
|
|
|
|
|
2023-06-08 19:44:21 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2022-02-09 21:54:28 +00:00
|
|
|
depends_on:
|
|
|
|
- linter
|
|
|
|
|
|
|
|
platform:
|
2023-05-29 09:12:52 +00:00
|
|
|
arch: arm64
|
2022-02-09 21:54:28 +00:00
|
|
|
|
|
|
|
steps:
|
2023-06-08 19:44:21 +00:00
|
|
|
- name: clone
|
2023-10-03 08:05:19 +00:00
|
|
|
image: git.cryptic.systems/volker.raschek/git:1.3.1
|
2023-06-08 19:44:21 +00:00
|
|
|
|
2022-02-09 21:54:28 +00:00
|
|
|
- name: unit-test
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
2024-04-03 19:47:44 +00:00
|
|
|
image: docker.io/library/golang:1.22.2
|
2022-03-17 18:03:16 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
- name: postgres
|
2024-02-13 02:05:55 +00:00
|
|
|
image: docker.io/library/postgres:16.2-alpine
|
2022-03-17 18:03:16 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: postgres
|
2022-02-09 21:54:28 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2022-03-18 17:59:06 +00:00
|
|
|
include:
|
|
|
|
- pull_request
|
|
|
|
- push
|
2022-02-09 21:54:28 +00:00
|
|
|
exclude:
|
2022-03-17 18:03:16 +00:00
|
|
|
- tag
|