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
|
2022-03-11 13:01:33 +00:00
|
|
|
image: docker.io/volkerraschek/markdownlint:0.31.1
|
2022-03-11 09:34:55 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 50
|
|
|
|
memory: 50M
|
|
|
|
|
2022-03-11 09:51:55 +00:00
|
|
|
- name: golangci lint
|
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
2022-03-24 13:01:53 +00:00
|
|
|
image: docker.io/golangci/golangci-lint:v1.45.2-alpine
|
2022-03-11 09:34:55 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2022-03-11 10:02:49 +00:00
|
|
|
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 ./...
|
2022-04-15 08:35:35 +00:00
|
|
|
image: docker.io/volkerraschek/gosec:2.11.0
|
2022-03-11 09:34:55 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 250
|
2022-03-11 10:10:42 +00:00
|
|
|
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 ./...
|
2022-03-16 17:38:00 +00:00
|
|
|
image: docker.io/library/golang:1.18.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
|
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: unit-test
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
2022-03-16 17:38:00 +00:00
|
|
|
image: docker.io/library/golang:1.18.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
|
|
|
|
|
|
|
|
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:
|
2022-03-11 10:30:57 +00:00
|
|
|
- volker.raschek/dyndns-client
|