flucky/.drone.yml

140 lines
2.0 KiB
YAML
Raw Normal View History

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
platform:
os: linux
2020-06-10 19:16:50 +00:00
steps:
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
image: docker.io/volkerraschek/markdownlint:0.30.0
resources:
limits:
cpu: 50
memory: 50M
- 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
2020-06-10 19:16:50 +00:00
when:
2022-02-09 21:54:28 +00:00
status:
- changed
- failure
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: vulnerability-check
depends_on:
- linter
platform:
os: linux
steps:
- name: gosec
commands:
- gosec ./...
image: docker.io/volkerraschek/gosec:2.9.4
resources:
limits:
cpu: 250
memory: 250M
- 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
when:
status:
- changed
- failure
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: unit-test-amd64
depends_on:
- linter
platform:
arсh: amd64
steps:
- name: unit-test
commands:
- go test -v ./...
2022-03-16 19:22:19 +00:00
image: docker.io/library/golang:1.18.0
2022-02-09 21:54:28 +00:00
resources:
limits:
cpu: 250
memory: 500M
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
depends_on:
- linter
platform:
arсh: arm64
steps:
- name: unit-test
commands:
- go test -v ./...
2022-03-16 19:22:19 +00:00
image: docker.io/library/golang:1.18.0
2022-02-09 21:54:28 +00:00
resources:
limits:
cpu: 250
memory: 500M
trigger:
event:
exclude:
- tag