dyndns-client/.drone.yml

198 lines
3.0 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
platform:
os: linux
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.30.0
resources:
limits:
cpu: 50
memory: 50M
2022-03-11 09:51:55 +00:00
- name: golangci lint
commands:
- golangci-lint run
image: docker.io/golangci/golangci-lint:v1.44.2-alpine
2022-03-11 09:34:55 +00:00
resources:
limits:
cpu: 250
memory: 500M
2022-03-11 09:34:55 +00:00
- name: email-notification
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
2021-04-23 14:02:15 +00:00
when:
2022-03-11 09:34:55 +00:00
status:
- changed
- failure
trigger:
event:
exclude:
2021-04-26 06:33:19 +00:00
- tag
2022-03-11 09:34:55 +00:00
---
kind: pipeline
type: kubernetes
name: vulnerability-check
depends_on:
- linter
2021-04-26 06:33:19 +00:00
2022-03-11 09:34:55 +00:00
platform:
os: linux
steps:
- name: gosec
2021-04-26 06:33:19 +00:00
commands:
2022-03-11 09:34:55 +00:00
- gosec ./...
image: docker.io/volkerraschek/gosec:2.9.4
resources:
limits:
cpu: 250
memory: 500M
2022-03-11 09:34:55 +00:00
- name: email-notification
2021-04-26 06:33:19 +00:00
environment:
2022-03-11 09:34:55 +00:00
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
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
platform:
arch: amd64
steps:
- name: unit-test
commands:
- go test -v ./...
image: docker.io/library/golang:1.17.6
resources:
limits:
cpu: 250
memory: 500M
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: unit-test-arm64
depends_on:
- linter
platform:
arch: arm64
steps:
- name: unit-test
commands:
- go test -v ./...
image: docker.io/library/golang:1.17.6
resources:
limits:
cpu: 250
memory: 500M
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: sync
platform:
os: linux
arch: amd64
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:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
2022-03-11 09:34:55 +00:00
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
2021-04-26 06:33:19 +00:00
when:
status:
- changed
- failure
2022-03-11 09:34:55 +00:00
trigger:
event:
- push
repo:
- volker-raschek/dyndns-client