giredore/.drone.yml

35 lines
600 B
YAML
Raw Normal View History

2019-10-07 21:51:45 +05:00
---
kind: pipeline
type: docker
name: build
steps:
- name: lint
2021-11-20 02:11:03 +05:00
image: golangci/golangci-lint:v1.43.0
environment:
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
2021-11-20 02:11:03 +05:00
image: golang:1.17.3-alpine
environment:
CGO_ENABLED: 0
commands:
- go test ./...
2019-10-12 08:25:07 +05:00
- name: docker
image: plugins/docker
when:
branch: ["master"]
2019-10-12 08:25:07 +05:00
settings:
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_password
repo: pztrn/giredore
2019-10-12 08:25:07 +05:00
auto_tag: true
2019-10-16 23:32:21 +05:00
depends_on:
- lint
- test