Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
CI-CD Pipelines
Commits
fd299e62
Commit
fd299e62
authored
Apr 10, 2020
by
David Diederich
Browse files
Added some commentary and ensure that the cache directory exists
parent
149f8bcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
gitlab-ultimate.gitlab-ci.yml
View file @
fd299e62
...
...
@@ -17,14 +17,16 @@ include:
DS_DISABLE_DIND
:
"
true"
SAST_DISABLE_DIND
:
"
true"
# We need to make sure both directories exist, then we can copy files over
# Since it is a separate volume, mv offers no advantages. tar | tar, plus rm, is the fastest execution
before_script
:
-
mkdir -p ~/.m2
/repository
-
cp -R
$CI_PROJECT_DIR/.m2
/
repository
/ ~/.m2/repository/
-
mkdir -p ~/.m2
$CI_PROJECT_DIR/.m2
-
tar -cC
$CI_PROJECT_DIR/.m2
repository
| tar -xC ~/.m2
-
rm -rf $CI_PROJECT_DIR/.m2/repository
# Copy the repository back to the cache area
after_script
:
-
mkdir -p $CI_PROJECT_DIR/.m2/repository
-
cp -R ~/.m2/repository/ $CI_PROJECT_DIR/.m2/repository/
-
tar -cC ~/.m2 repository | tar -xC $CI_PROJECT_DIR/.m2
# --------------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
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