dyndns-client/.drone.yml

125 lines
1.9 KiB
YAML
Raw Normal View History

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
clone:
disable: true
2021-04-23 14:02:15 +00:00
steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.3.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
image: git.cryptic.systems/volker.raschek/markdownlint:0.42.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
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
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
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:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.3.1
2022-03-11 09:34:55 +00:00
- name: unit-test
commands:
- go test -v ./...
image: docker.io/library/golang:1.23.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
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:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.3.1
2022-03-11 09:34:55 +00:00
- name: unit-test
commands:
- go test -v ./...
image: docker.io/library/golang:1.23.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