add base job
This commit is contained in:
parent
09df003760
commit
c7256db345
|
@ -4,13 +4,17 @@ stages:
|
||||||
- image
|
- image
|
||||||
- status-post
|
- status-post
|
||||||
|
|
||||||
build-go:
|
.build-base:
|
||||||
stage: build
|
image: apextoaster/base:1.3
|
||||||
image: apextoaster/golang:1.14
|
|
||||||
tags:
|
tags:
|
||||||
- platform:k8s
|
- platform:k8s
|
||||||
- runner:shared
|
- runner:shared
|
||||||
|
|
||||||
|
build-go:
|
||||||
|
extends:
|
||||||
|
- .build-base
|
||||||
|
stage: build
|
||||||
|
image: apextoaster/golang:1.14
|
||||||
script:
|
script:
|
||||||
- time go build
|
- time go build
|
||||||
- time go test
|
- time go test
|
||||||
|
@ -28,13 +32,12 @@ build-go:
|
||||||
- vendor
|
- vendor
|
||||||
|
|
||||||
build-image:
|
build-image:
|
||||||
|
extends:
|
||||||
|
- .build-base
|
||||||
stage: image
|
stage: image
|
||||||
image: apextoaster/docker:18.09
|
image: apextoaster/docker:18.09
|
||||||
services:
|
services:
|
||||||
- apextoaster/docker-dind:18.09
|
- apextoaster/docker-dind:18.09
|
||||||
tags:
|
|
||||||
- platform:k8s
|
|
||||||
- runner:k8s
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- build-go
|
- build-go
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
Loading…
Reference in New Issue