2019-10-12 14:26:46 +05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
2019-10-13 14:02:33 +05:00
|
|
|
- name: lint
|
2021-11-20 02:23:47 +05:00
|
|
|
image: golangci/golangci-lint:v1.43.0
|
2019-10-13 14:02:33 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
|
|
|
|
|
|
|
- name: test
|
2021-11-20 22:00:02 +05:00
|
|
|
image: golang:1.17.3-alpine
|
2019-10-13 14:02:33 +05:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
|
2019-10-12 14:26:46 +05:00
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
2019-10-13 14:02:33 +05:00
|
|
|
when:
|
2019-12-22 00:56:43 +05:00
|
|
|
branch: master
|
2019-10-12 14:26:46 +05:00
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: dockerhub_user
|
|
|
|
password:
|
|
|
|
from_secret: dockerhub_password
|
2019-10-12 14:30:20 +05:00
|
|
|
repo: pztrn/fastpastebin
|
2019-10-12 14:26:46 +05:00
|
|
|
auto_tag: true
|