Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Website
poul.org
Commits
7f983f2b
Verified
Commit
7f983f2b
authored
Sep 26, 2019
by
Davide Depau
Browse files
Do not cache ~/.bundle
parent
ee8994f1
Pipeline
#104
passed with stage
in 2 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7f983f2b
...
...
@@ -8,9 +8,9 @@ variables:
LC_ALL
:
C.UTF-8
GIT_SUBMODULE_STRATEGY
:
recursive
# Build is in `before_script` because it's the same for both deployments
before_script
:
-
mv usr-local-bundle /usr/local/bundle ||
true
# Move extracted cache to its
-
mv home-bundle ~/.bundle ||
true
# original place
-
mv usr-local-bundle /usr/local/bundle ||
true
# Move extracted cache to its original place
-
apk add npm
-
npm install
-
bundle install
...
...
@@ -18,8 +18,7 @@ before_script:
-
jekyll build -d public
-
./scripts/purgecss.sh public
-
./scripts/minifycssjs.sh public
-
mv /usr/local/bundle usr-local-bundle
# Move cache to workdir so
-
mv ~/.bundle home-bundle
# that GitLab will pick it up
-
mv /usr/local/bundle usr-local-bundle ||
true
# Move cache to workdir so that GitLab will pick it up
deploy-prod
:
stage
:
deploy
...
...
@@ -35,7 +34,6 @@ deploy-prod:
paths
:
-
"
usr-local-bundle/"
-
"
node_modules/"
-
"
home-bundle"
only
:
-
master
...
...
@@ -51,6 +49,5 @@ pages:
paths
:
-
"
usr-local-bundle/"
-
"
node_modules/"
-
"
home-bundle"
only
:
-
develop
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