👷 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 type: docker
name: default name: default
steps: environment:
- name: init CGO_ENABLED: 0
image: golang:1.18.0-alpine3.14
volumes:
- name: deps
path: /go
commands:
- go mod download
- go generate ./internal/...
steps:
- name: test - name: test
image: golang:1.18.0-alpine3.14 image: golang:1.18
volumes: volumes:
- name: deps - name: modules
path: /go path: /go/pkg/mod
environment:
CGO_ENABLED: 0
commands: commands:
- go test -buildvcs=false -v -cover ./... - make check
depends_on:
- init
- name: build - name: build
image: golang:1.18.0-alpine3.14 image: golang:1.18
volumes: volumes:
- name: deps - name: modules
path: /go path: /go/pkg/mod
environment:
CGO_ENABLED: 0
commands: commands:
- go build -buildvcs=false - make
depends_on: depends_on:
- init
- test - test
- name: finish
image: alpine
depends_on:
- build
volumes: volumes:
- name: deps - name: modules
temp: {} temp: {}