This repository has been archived on 2022-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
2019-10-16 21:05:54 +05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: lint
|
|
|
|
image: golangci/golangci-lint:latest
|
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
2019-10-16 23:33:41 +05:00
|
|
|
depends_on:
|
|
|
|
- notify-start
|
2019-10-16 21:05:54 +05:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: golang:1.13.1-alpine
|
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- go test ./...
|
2019-10-16 23:33:41 +05:00
|
|
|
depends_on:
|
|
|
|
- notify-start
|
2019-10-16 21:05:54 +05:00
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
master
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: dockerhub_user
|
|
|
|
password:
|
|
|
|
from_secret: dockerhub_password
|
|
|
|
repo: pztrn/discordrone
|
|
|
|
auto_tag: true
|
2019-10-16 23:33:41 +05:00
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
- lint
|