Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
10beebfb
Commit
10beebfb
authored
Feb 03, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'rules' in '.gitlab/ci/cache-repo.gitlab-ci.yml'
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
07bd816e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
.gitlab/ci/cache-repo.gitlab-ci.yml
.gitlab/ci/cache-repo.gitlab-ci.yml
+7
-5
No files found.
.gitlab/ci/cache-repo.gitlab-ci.yml
View file @
10beebfb
# Make sure to update all the similar conditions in other CI config files if you modify these conditions
.if-cache-credentials-schedule
:
&if-cache-credentials-schedule
if
:
'
$CI_REPO_CACHE_CREDENTIALS
&&
$CI_PIPELINE_SOURCE
==
"schedule"'
# Builds a cached .tar.gz of the master branch with full history and
# uploads it to Google Cloud Storage. This archive is downloaded by a
# script defined by a CI/CD variable named CI_PRE_CLONE_SCRIPT. This has
...
...
@@ -33,8 +37,6 @@ cache-repo:
-
tar cf $TAR_FILENAME .
-
gzip $TAR_FILENAME
-
gsutil cp $TAR_FILENAME.gz gs://gitlab-ci-git-repo-cache/project-$CI_PROJECT_ID/gitlab-master.tar.gz
only
:
variables
:
-
$CI_REPO_CACHE_CREDENTIALS
refs
:
-
schedules
rules
:
-
<<
:
*if-cache-credentials-schedule
when
:
on_success
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment