25 lines
436 B
YAML
25 lines
436 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: build
|
||
|
|
||
|
steps:
|
||
|
- name: lint
|
||
|
image: golangci/golangci-lint:v1.43.0
|
||
|
environment:
|
||
|
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
|