--- kind: pipeline type: kubernetes name: linter platform: os: linux steps: - name: markdown lint commands: - markdownlint *.md image: docker.io/volkerraschek/markdownlint:0.32.1 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 when: status: - changed - failure trigger: event: include: - pull_request - push 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.12.0 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: include: - pull_request - push 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 ./... image: docker.io/library/golang:1.19.0 services: - name: postgres image: postgres:14.5-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: postgres trigger: event: exclude: - tag --- kind: pipeline type: kubernetes name: unit-test-arm64 depends_on: - linter platform: arсh: arm64 steps: - name: unit-test commands: - go test -v ./... image: docker.io/library/golang:1.19.0 services: - name: postgres image: postgres:14.5-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: postgres trigger: event: include: - pull_request - push exclude: - tag