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

34 lines
668 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: lint
image: golangci/golangci-lint:v1.41.1
commands:
- golangci-lint run --timeout 5m0s --tests=false
- 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