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
f59467a0
Commit
f59467a0
authored
Feb 26, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache Webpack assets in frontend assets compilation jobs
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
e6bae0bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
.gitlab/ci/frontend.gitlab-ci.yml
.gitlab/ci/frontend.gitlab-ci.yml
+7
-5
.gitlab/ci/qa.gitlab-ci.yml
.gitlab/ci/qa.gitlab-ci.yml
+5
-1
No files found.
.gitlab/ci/frontend.gitlab-ci.yml
View file @
f59467a0
...
...
@@ -2,6 +2,7 @@
cache
:
paths
:
-
vendor/ruby/
-
public/assets/webpack/
-
.yarn-cache/
-
tmp/cache/assets/sprockets
-
tmp/cache/babel-loader
...
...
@@ -28,13 +29,14 @@
DOCKER_DRIVER
:
overlay2
DOCKER_HOST
:
tcp://docker:2375
cache
:
key
:
"
assets-compile:production:v
endor_ruby:.yarn-cache:tmp_cache_assets_sprockets:tmp_cache_webpack:v9
"
key
:
"
assets-compile:production:v
1
"
artifacts
:
name
:
webpack-report
expire_in
:
31d
paths
:
-
webpack-report/
-
public/assets/
-
public/assets/application-*.css
-
public/assets/application-*.css.gz
script
:
-
node --version
-
retry yarn install --frozen-lockfile --production --cache-folder .yarn-cache --prefer-offline
...
...
@@ -79,7 +81,7 @@ gitlab:assets:compile pull-cache:
NODE_OPTIONS
:
--max_old_space_size=3584
WEBPACK_VENDOR_DLL
:
"
true"
cache
:
key
:
"
assets-compile:
v9
"
key
:
"
assets-compile:
test:v1
"
artifacts
:
expire_in
:
7d
paths
:
...
...
@@ -100,7 +102,7 @@ compile-assets pull-push-cache as-if-foss:
-
.as-if-foss
cache
:
policy
:
pull-push
key
:
"
assets-compile:
v9:foss
"
key
:
"
assets-compile:
test:as-if-foss:v1
"
compile-assets pull-cache
:
extends
:
...
...
@@ -116,7 +118,7 @@ compile-assets pull-cache as-if-foss:
-
.as-if-foss
cache
:
policy
:
pull
key
:
"
assets-compile:
v9:foss
"
key
:
"
assets-compile:
test:as-if-foss:v1
"
.frontend-fixtures-base
:
extends
:
...
...
.gitlab/ci/qa.gitlab-ci.yml
View file @
f59467a0
...
...
@@ -55,5 +55,9 @@ package-and-qa:
extends
:
-
.package-and-qa-base
-
.qa:rules:package-and-qa
needs
:
[
"
build-qa-image"
,
"
gitlab:assets:compile
pull-cache"
]
needs
:
-
job
:
build-qa-image
artifacts
:
false
-
job
:
gitlab:assets:compile pull-cache
artifacts
:
false
allow_failure
:
true
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