fastpastebin/.drone.yml

32 lines
558 B
YAML
Raw Normal View History

2019-10-12 14:26:46 +05:00
---
kind: pipeline
type: docker
name: build
steps:
2019-10-13 14:02:33 +05:00
- name: lint
2021-11-20 02:23:47 +05:00
image: golangci/golangci-lint:v1.43.0
2019-10-13 14:02:33 +05:00
environment:
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
image: golang:1.17.3-alpine
2019-10-13 14:02:33 +05:00
environment:
CGO_ENABLED: 0
commands:
- go test ./...
2019-10-12 14:26:46 +05:00
- name: docker
image: plugins/docker
2019-10-13 14:02:33 +05:00
when:
branch: master
2019-10-12 14:26:46 +05:00
settings:
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_password
repo: pztrn/fastpastebin
2019-10-12 14:26:46 +05:00
auto_tag: true