fastpastebin/.drone.yml

33 lines
595 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
2022-06-26 22:04:03 +05:00
image: golangci/golangci-lint:v1.46.2
2019-10-13 14:02:33 +05:00
environment:
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
2022-06-26 22:04:03 +05:00
image: golang:1.18.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"]
2022-06-26 22:04:03 +05:00
event: ["tag"]
2019-10-12 14:26:46 +05:00
settings:
2022-06-26 22:04:03 +05:00
registry: code.pztrn.name
username: drone
2019-10-12 14:26:46 +05:00
password:
2022-06-26 22:04:03 +05:00
from_secret: drone_secret
repo: code.pztrn.name/pztrn/fastpastebin
2019-10-12 14:26:46 +05:00
auto_tag: true