Drone CI.

This commit is contained in:
Stanislav Nikitin 2021-11-20 03:19:51 +05:00
parent cedbc80a6e
commit c4ff0acc8a
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
1 changed files with 25 additions and 0 deletions

25
.drone.yml Normal file
View File

@ -0,0 +1,25 @@
---
kind: pipeline
type: docker
name: build
steps:
- name: lint
image: golangci/golangci-lint:v1.43.0
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: docker
image: plugins/docker
when:
branch: master
settings:
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_password
repo: pztrn/periodicator
auto_tag: true