giredore/.drone.yml

35 lines
687 B
YAML
Raw Normal View History

2019-10-07 21:51:45 +05:00
---
kind: pipeline
type: docker
name: build
steps:
- name: lint
image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2
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: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
when:
branch: ["master"]
2019-10-12 08:25:07 +05:00
settings:
registry: code.pztrn.name
username: drone
2019-10-12 08:25:07 +05:00
password:
from_secret: drone_secret
repo: code.pztrn.name/apps/giredore
2019-10-12 08:25:07 +05:00
auto_tag: true
2019-10-16 23:32:21 +05:00
depends_on:
- lint
- test