From c7256db3452799548d739f7a40d78595680eae14 Mon Sep 17 00:00:00 2001 From: ssube Date: Sun, 5 Apr 2020 23:07:01 -0500 Subject: [PATCH] add base job --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1b11085..bf9e1fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,13 +4,17 @@ stages: - image - status-post -build-go: - stage: build - image: apextoaster/golang:1.14 +.build-base: + image: apextoaster/base:1.3 tags: - platform:k8s - runner:shared +build-go: + extends: + - .build-base + stage: build + image: apextoaster/golang:1.14 script: - time go build - time go test @@ -28,13 +32,12 @@ build-go: - vendor build-image: + extends: + - .build-base stage: image image: apextoaster/docker:18.09 services: - apextoaster/docker-dind:18.09 - tags: - - platform:k8s - - runner:k8s dependencies: - build-go allow_failure: false