From 6577291b48b7a899f52b37c1aca258192e5307ca Mon Sep 17 00:00:00 2001 From: Vitaly Shunkov <v.shunkov@picodata.io> Date: Wed, 18 Dec 2024 10:48:06 +0300 Subject: [PATCH] ci: push cache in tests on master --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a33746058f..c642e2f012 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -218,6 +218,9 @@ test-linux: variables: BASE_IMAGE_TAG: ${CI_COMMIT_SHA} CACHE_POLICY: pull + - if: $CI_COMMIT_BRANCH == $MAIN_BRANCH + variables: + CACHE_POLICY: pull-push - <<: *else variables: CACHE_POLICY: pull -- GitLab