---
kind: pipeline
type: docker
name: test
steps:
- name: test
image: golang:1.18
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
trigger:
event:
- push
- pull_request
branch:
- master
name: check-go-mod
- name: check go.mod
- go mod tidy
- git diff --exit-code go.mod
name: golangci-lint
- name: run golangci-lint
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.47.0
- golangci-lint run
name: linux-amd64
platform:
os: linux
arch: amd64
- name: publish
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: kichiyaki/notificationarr
auto_tag: true
auto_tag_suffix: linux-amd64
dockerfile: Dockerfile
- tag
name: manifest
- name: manifest
image: plugins/manifest
auto_tag: "true"
ignore_missing: "true"
spec: manifest.tmpl
depends_on:
- linux-amd64