Move stuff to workdir so GitLab will cache it

parent bbe293c1
Pipeline #101 failed with stage
in 28 seconds
......@@ -9,6 +9,8 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- mv usr-local-bundle /usr/local/bundle # Move extracted cache to its
- mv home-bundle ~/.bundle # original place
- apk add npm
- npm install
- bundle install
......@@ -16,6 +18,8 @@ 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
deploy-prod:
stage: deploy
......@@ -29,9 +33,9 @@ deploy-prod:
cache:
key: build-deps
paths:
- "/usr/local/bundle/"
- "usr-local-bundle/"
- "node_modules/"
- "$HOME/.bundle"
- "home-bundle"
only:
- master
......@@ -45,8 +49,8 @@ pages:
cache:
key: build-deps
paths:
- "/usr/local/bundle/"
- "usr-local-bundle/"
- "node_modules/"
- "$HOME/.bundle"
- "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