mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:16:14 -06:00
35 lines
748 B
YAML
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
|