35 lines
595 B
YAML
35 lines
595 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
|
|
steps:
|
|
- name: lint
|
|
image: golangci/golangci-lint:latest
|
|
environment:
|
|
CGO_ENABLED: 0
|
|
commands:
|
|
- golangci-lint run
|
|
|
|
- name: test
|
|
image: golang:1.13.5-alpine
|
|
environment:
|
|
CGO_ENABLED: 0
|
|
commands:
|
|
- go test ./...
|
|
|
|
- name: docker
|
|
image: plugins/docker
|
|
when:
|
|
branch: master
|
|
settings:
|
|
username:
|
|
from_secret: dockerhub_user
|
|
password:
|
|
from_secret: dockerhub_password
|
|
repo: pztrn/opensaps
|
|
auto_tag: true
|
|
depends_on:
|
|
- lint
|
|
- test
|