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
580d50c1
Verified
Commit
580d50c1
authored
Sep 26, 2019
by
Davide Depau
Browse files
Try to use environ var to cache Gems
parent
c8396099
Pipeline
#108
passed with stage
in 2 minutes
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
580d50c1
...
...
@@ -7,10 +7,10 @@ variables:
JEKYLL_ENV
:
production
LC_ALL
:
C.UTF-8
GIT_SUBMODULE_STRATEGY
:
recursive
BUNDLE_USER_HOME
:
./bundle
# 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 original place
-
apk add npm
-
npm install
-
bundle install
...
...
@@ -18,7 +18,6 @@ before_script:
-
jekyll build -d public
-
./scripts/purgecss.sh public
-
./scripts/minifycssjs.sh public
-
mv /usr/local/bundle usr-local-bundle ||
true
# Move cache to workdir so that GitLab will pick it up
deploy-prod
:
stage
:
deploy
...
...
@@ -32,7 +31,7 @@ deploy-prod:
cache
:
key
:
build-deps
paths
:
-
"
usr-local-
bundle/"
-
"
bundle/"
-
"
node_modules/"
only
:
-
master
...
...
@@ -47,7 +46,7 @@ pages:
cache
:
key
:
build-deps
paths
:
-
"
usr-local-
bundle/"
-
"
bundle/"
-
"
node_modules/"
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