gotosocial/.drone.yml
2021-08-11 22:01:30 +02:00

35 lines
748 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: lint
image: golang
commands:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
- golangci-lint run
- name: test
image: golang
environment:
GTS_DB_ADDRESS: postgres
commands:
- go test -count 1 -p 1 ./...
- name: publish
image: plugins/docker
settings:
auto_tag: true
username:
from_secret: gts_docker_username
password:
from_secret: gts_docker_password
repo: superseriousbusiness/gotosocial
tags: latest
when:
event:
exclude:
- pull_request
services:
- name: postgres
image: postgres
environment:
POSTGRES_PASSWORD: postgres