👷 Updated CI/CD build configurations
This commit is contained in:
parent
3093eba507
commit
851092b52c
|
@ -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: {}
|
||||||
|
|
Loading…
Reference in New Issue