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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 5 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3db504bd3..12fa1ba23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -51,7 +51,7 @@ danger-review:
fi
.cache: &cache_definition
- cache:
+ cache: &cache_configuration
key:
files:
- Makefile
@@ -60,21 +60,11 @@ danger-review:
paths:
- _build/deps
- ruby/vendor/bundle
+ policy: pull
.test_template: &test_definition
<<: *cache_definition
stage: test
- # Override the cache definition for pull
- cache:
- key:
- files:
- - Makefile
- - ruby/Gemfile.lock
- prefix: git-${GIT_VERSION}-ruby-${RUBY_VERSION}
- paths:
- - _build/deps
- - ruby/vendor/bundle
- policy: pull
artifacts:
paths:
- ruby/tmp/gitaly-rspec-test.log
@@ -129,9 +119,11 @@ proto:
when: on_failure
build:
- <<: *cache_definition
stage: build
image: registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-${RUBY_VERSION}-golang-${GO_VERSION}-git-2.31
+ cache:
+ <<: *cache_configuration
+ policy: pull-push
script:
- go version
- make all git