summaryrefslogtreecommitdiff
path: root/.gitlab/ci/frontend.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/ci/frontend.gitlab-ci.yml')
-rw-r--r--.gitlab/ci/frontend.gitlab-ci.yml19
1 files changed, 13 insertions, 6 deletions
diff --git a/.gitlab/ci/frontend.gitlab-ci.yml b/.gitlab/ci/frontend.gitlab-ci.yml
index fd5733593ef..cc7e20ba9bc 100644
--- a/.gitlab/ci/frontend.gitlab-ci.yml
+++ b/.gitlab/ci/frontend.gitlab-ci.yml
@@ -1,11 +1,18 @@
.assets-compile-cache: &assets-compile-cache
cache:
- key: "assets-compile:vendor_ruby:.yarn-cache:tmp_cache_assets_sprockets:v5"
+ key: "assets-compile-compressed:vendor_ruby:.yarn-cache:tmp_cache_assets_sprockets:v1"
paths:
- - vendor/ruby/
- - .yarn-cache/
- - tmp/cache/assets/sprockets
+ - cache_archives
policy: pull-push
+ before_script:
+ - scripts/assets-compile-cache/extract
+ - date
+ - source scripts/utils.sh
+ - source scripts/prepare_build.sh
+ - date
+ after_script:
+ - scripts/assets-compile-cache/archive
+ - date
.use-pg: &use-pg
services:
@@ -37,7 +44,7 @@ gitlab:assets:compile:
- free -m
- retry bundle exec rake gitlab:assets:compile
- time scripts/build_assets_image
- - scripts/clean-old-cached-assets
+ - scripts/assets-compile-cache/clean-old-assets
- rm -f /etc/apt/sources.list.d/google*.list # We don't need to update Chrome here
# Play dependent manual jobs
- install_api_client_dependencies_with_apt
@@ -68,7 +75,7 @@ compile-assets:
- retry yarn install --frozen-lockfile --cache-folder .yarn-cache
- free -m
- retry bundle exec rake gitlab:assets:compile
- - scripts/clean-old-cached-assets
+ - scripts/assets-compile-cache/clean-old-assets
variables:
# we override the max_old_space_size to prevent OOM errors
NODE_OPTIONS: --max_old_space_size=3584