Do not cache ~/.bundle

parent ee8994f1
Pipeline #104 passed with stage
in 2 minutes and 11 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment