[tor-commits] [manual/master] cache exists inside the job
emmapeel at torproject.org
emmapeel at torproject.org
Fri Sep 3 08:07:09 UTC 2021
commit 6710c7a1c0364241bd1986d0597fd5fd1a381940
Author: emma peel <emma.peel at riseup.net>
Date: Thu Sep 2 15:14:39 2021 +0200
cache exists inside the job
---
.gitlab-ci.yml | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ff256bc..5119cc8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,15 +1,9 @@
image: debian:buster-slim
-
-cache:
- key: $CI_PROJECT_PATH_SLUG.${CI_COMMIT_REF_SLUG}
- paths:
- - packages
- - lego
- - apt-cache
-
+
+
# This template should be usable on any system that's based on apt.
# taken from tor gitlabci
-
+
.apt-template: &apt-template |
export LC_ALL=C.UTF-8
echo Etc/UTC > /etc/timezone
@@ -34,6 +28,13 @@ stages:
- test_l10n
pages:
+ cache:
+ key: $CI_PROJECT_PATH_SLUG.${CI_COMMIT_REF_SLUG}
+ paths:
+ - packages
+ - lego
+ - apt-cache
+ - venv
stage: build
script:
- *apt-template
@@ -56,6 +57,13 @@ pages:
- l10n
check_new_strings:
+ cache:
+ key: $CI_PROJECT_PATH_SLUG.${CI_COMMIT_REF_SLUG}
+ paths:
+ - packages
+ - lego
+ - apt-cache
+ - venv
stage: test_l10n
needs: [pages]
rules:
@@ -76,6 +84,14 @@ check_new_strings:
- i18n
check_l10n:
+ cache:
+ key: $CI_PROJECT_PATH_SLUG.${CI_COMMIT_REF_SLUG}
+ paths:
+ - packages
+ - lego
+ - apt-cache
+ - venv
+ - i18n
stage: test_l10n
needs: [pages]
only:
More information about the tor-commits
mailing list