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
e6927403
Commit
e6927403
authored
Feb 13, 2020
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add webpack vendor dlls to CI cache
parent
04bdbfd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
.gitlab/ci/frontend.gitlab-ci.yml
.gitlab/ci/frontend.gitlab-ci.yml
+2
-0
scripts/clean-old-cached-assets
scripts/clean-old-cached-assets
+2
-0
No files found.
.gitlab/ci/frontend.gitlab-ci.yml
View file @
e6927403
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
-
tmp/cache/assets/sprockets
-
tmp/cache/assets/sprockets
-
tmp/cache/babel-loader
-
tmp/cache/babel-loader
-
tmp/cache/vue-loader
-
tmp/cache/vue-loader
-
tmp/cache/webpack-dlls
.gitlab:assets:compile-metadata:
.gitlab:assets:compile-metadata:
extends
:
extends
:
...
@@ -78,6 +79,7 @@ gitlab:assets:compile pull-cache:
...
@@ -78,6 +79,7 @@ gitlab:assets:compile pull-cache:
SETUP_DB
:
"
false"
SETUP_DB
:
"
false"
# we override the max_old_space_size to prevent OOM errors
# we override the max_old_space_size to prevent OOM errors
NODE_OPTIONS
:
--max_old_space_size=3584
NODE_OPTIONS
:
--max_old_space_size=3584
WEBPACK_VENDOR_DLL
:
"
true"
cache
:
cache
:
key
:
"
assets-compile:v9"
key
:
"
assets-compile:v9"
artifacts
:
artifacts
:
...
...
scripts/clean-old-cached-assets
View file @
e6927403
...
@@ -2,5 +2,7 @@
...
@@ -2,5 +2,7 @@
# Clean up cached files that are older than 4 days
# Clean up cached files that are older than 4 days
find tmp/cache/assets/sprockets/
-type
f
-mtime
+4
-execdir
rm
--
"{}"
\;
find tmp/cache/assets/sprockets/
-type
f
-mtime
+4
-execdir
rm
--
"{}"
\;
find tmp/cache/webpack-dlls/
-maxdepth
1
-type
d
-mtime
+4
-exec
rm
-rf
--
"{}"
\;
du
-d
0
-h
tmp/cache/assets/sprockets |
cut
-f1
| xargs
-I
%
echo
"tmp/cache/assets/sprockets/ is currently %"
du
-d
0
-h
tmp/cache/assets/sprockets |
cut
-f1
| xargs
-I
%
echo
"tmp/cache/assets/sprockets/ is currently %"
du
-d
0
-h
tmp/cache/webpack-dlls |
cut
-f1
| xargs
-I
%
echo
"tmp/cache/webpack-dlls is currently %"
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