dyndns-client/.drone.yml

152 lines
2.4 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
2021-04-23 14:02:15 +00:00
steps:
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: docker.io/volkerraschek/markdownlint:0.33.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.52.1-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
2022-11-10 22:12:58 +00:00
image: docker.io/volkerraschek/drone-email:0.1.1
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
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: unit-test
commands:
- go test -v ./...
image: docker.io/library/golang:1.20.0
2022-03-11 09:34:55 +00:00
resources:
limits:
cpu: 250
memory: 500M
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: unit-test-arm64
depends_on:
- linter
2022-11-10 22:12:58 +00:00
node_selector:
kubernetes.io/arch: arm64
2022-03-11 09:34:55 +00:00
steps:
- name: unit-test
commands:
- go test -v ./...
image: docker.io/library/golang:1.20.0
2022-03-11 09:34:55 +00:00
resources:
limits:
cpu: 250
memory: 500M
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: sync
2022-11-10 22:12:58 +00:00
node_selector:
kubernetes.io/arch: amd64
2022-03-11 09:34:55 +00:00
steps:
- name: github
image: docker.io/appleboy/drone-git-push:latest
resources:
limits:
cpu: 50
memory: 25M
2021-04-26 06:33:19 +00:00
settings:
2022-03-11 09:34:55 +00:00
branch: master
remote: ssh://git@github.com/volker-raschek/dyndns-client.git
2021-04-26 06:33:19 +00:00
force: true
2022-03-11 09:34:55 +00:00
ssh_key:
from_secret: ssh_key
- 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:
2021-04-26 06:33:19 +00:00
from_secret: smtp_host
2022-11-10 22:12:58 +00:00
SMTP_USERNAME:
2021-04-26 06:33:19 +00:00
from_secret: smtp_username
2022-11-10 22:12:58 +00:00
SMTP_PASSWORD:
2021-04-26 06:33:19 +00:00
from_secret: smtp_password
2022-11-10 22:12:58 +00:00
image: docker.io/volkerraschek/drone-email:0.1.1
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:
status:
- changed
- failure
2022-03-11 09:34:55 +00:00
trigger:
event:
- push
repo:
2022-03-11 10:30:57 +00:00
- volker.raschek/dyndns-client