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
|
2021-11-20 02:11:03 +05:00
|
|
|
image: golangci/golangci-lint:v1.43.0
|
2019-10-13 15:12:54 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
|
|
|
|
|
|
|
- name: test
|
2021-11-20 02:11:03 +05:00
|
|
|
image: golang:1.17.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
|
|
|
|
image: plugins/docker
|
2019-10-13 15:12:54 +05:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
master
|
2019-10-12 08:25:07 +05:00
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: dockerhub_user
|
|
|
|
password:
|
|
|
|
from_secret: dockerhub_password
|
2019-10-13 15:14:19 +05:00
|
|
|
repo: pztrn/giredore
|
2019-10-12 08:25:07 +05:00
|
|
|
auto_tag: true
|
2019-10-16 23:32:21 +05:00
|
|
|
depends_on:
|
|
|
|
- lint
|
|
|
|
- test
|