👷 Updated CI/CD build configurations

This commit is contained in:
Maxim Lebedev 2022-03-26 00:12:06 +05:00
parent 3093eba507
commit 851092b52c
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 17 additions and 25 deletions

View File

@ -3,41 +3,33 @@ kind: pipeline
type: docker
name: default
steps:
- name: init
image: golang:1.18.0-alpine3.14
volumes:
- name: deps
path: /go
commands:
- go mod download
- go generate ./internal/...
environment:
CGO_ENABLED: 0
steps:
- name: test
image: golang:1.18.0-alpine3.14
image: golang:1.18
volumes:
- name: deps
path: /go
environment:
CGO_ENABLED: 0
- name: modules
path: /go/pkg/mod
commands:
- go test -buildvcs=false -v -cover ./...
depends_on:
- init
- make check
- name: build
image: golang:1.18.0-alpine3.14
image: golang:1.18
volumes:
- name: deps
path: /go
environment:
CGO_ENABLED: 0
- name: modules
path: /go/pkg/mod
commands:
- go build -buildvcs=false
- make
depends_on:
- init
- test
- name: finish
image: alpine
depends_on:
- build
volumes:
- name: deps
- name: modules
temp: {}