2019-10-07 21:51:45 +05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
2019-10-13 15:12:54 +05:00
|
|
|
- name: lint
|
2022-06-29 15:04:57 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2
|
2019-10-13 15:12:54 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
|
|
|
|
|
|
|
- name: test
|
2022-06-29 15:06:32 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine
|
2019-10-13 15:12:54 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
|
2019-10-12 08:25:07 +05:00
|
|
|
- name: docker
|
2022-06-29 15:04:57 +05:00
|
|
|
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
|
2019-10-13 15:12:54 +05:00
|
|
|
when:
|
2021-11-20 23:06:40 +05:00
|
|
|
branch: ["master"]
|
2019-10-12 08:25:07 +05:00
|
|
|
settings:
|
2022-06-29 15:04:57 +05:00
|
|
|
registry: code.pztrn.name
|
|
|
|
username: drone
|
2019-10-12 08:25:07 +05:00
|
|
|
password:
|
2022-06-29 15:04:57 +05:00
|
|
|
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
|