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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-16 18:07:39 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-16 18:07:39 +0300
commit862d225ca0d8eb452e56b8fe5a0109aac796e872 (patch)
treeebf0a5d43bd271fadd9004245fb7c7cf0543dcc1 /.gitlab
parentd10a462fedbd7794a83abdba9b4526600f71de5b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/cache-repo.gitlab-ci.yml33
-rw-r--r--.gitlab/ci/reports.gitlab-ci.yml2
2 files changed, 35 insertions, 0 deletions
diff --git a/.gitlab/ci/cache-repo.gitlab-ci.yml b/.gitlab/ci/cache-repo.gitlab-ci.yml
new file mode 100644
index 00000000000..f856afd3a02
--- /dev/null
+++ b/.gitlab/ci/cache-repo.gitlab-ci.yml
@@ -0,0 +1,33 @@
+# 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
+# two benefits:
+#
+# 1. It speeds up builds. A 800 MB download only takes seconds.
+# 2. It significantly reduces load on the file server. Smaller deltas
+# means less time spent in git pack-objects.
+#
+# Since the destination directory of the archive depends on the project
+# ID, this is only run on GitLab.com.
+#
+# CI_REPO_CACHE_CREDENTIALS contains the Google Cloud service account
+# JSON for uploading to the gitlab-ci-git-repo-cache bucket. These
+# credentials are stored in the Production vault.
+#
+# Note that this bucket should be located in the same continent as the
+# runner, or network egress charges will apply:
+# https://cloud.google.com/storage/pricing
+cache-repo:
+ extends:
+ - .only:variables_refs-canonical-dot-com-schedules
+ image: gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
+ stage: sync
+ allow_failure: true
+ variables:
+ GIT_DEPTH: 0
+ TAR_FILENAME: /tmp/gitlab-master.tar
+ script:
+ - gcloud auth activate-service-account --key-file=$CI_REPO_CACHE_CREDENTIALS
+ - 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
diff --git a/.gitlab/ci/reports.gitlab-ci.yml b/.gitlab/ci/reports.gitlab-ci.yml
index afa26a23061..4ff14b660b3 100644
--- a/.gitlab/ci/reports.gitlab-ci.yml
+++ b/.gitlab/ci/reports.gitlab-ci.yml
@@ -37,6 +37,8 @@ code_quality:
artifacts:
reports:
codequality: gl-code-quality-report.json
+ paths:
+ - gl-code-quality-report.json
expire_in: 1 week
dependencies: []
except: