Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-26 09:02:38 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-11-03 02:44:08 +0300
commita3bf20e9a6fb8da3622ef4f610fcc98c16a55ab7 (patch)
tree076da37faa2029a58a3c6ce52920f1a0689335bd /.gitlab-ci.yml
parent2b5f9c3202c73306a6d7bafb58b7570b7dfec87d (diff)
ci: refactor ci jobs
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fe3e0960..cdc29511 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,3 @@
-stages:
- - prepare
- - test
-
workflow:
rules:
# For merge requests, create a pipeline.
@@ -23,11 +19,23 @@ default:
tags:
- gitlab-org
-.go-mod-cache:
+.common:
+ before_script:
+ - make setup
variables:
GOPATH: $CI_PROJECT_DIR/.GOPATH
+ cache:
+ paths:
+ - .GOPATH/pkg/mod/
+ policy: pull
+
+download deps:
+ extends: .common
before_script:
- - make setup
+ - echo skipping
+ script:
+ - make deps-download
cache:
paths:
- .GOPATH/pkg/mod/
+ policy: push