Skip to content
Snippets Groups Projects
Commit 7d4b7623 authored by Stefano Guerrini's avatar Stefano Guerrini
Browse files

CI TLLA 2021 cache dir

parent 3d783f37
Branches master
No related tags found
No related merge requests found
...@@ -7,10 +7,7 @@ stages: ...@@ -7,10 +7,7 @@ stages:
variables: variables:
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
BUILD_DIR: public/ BUILD_DIR: public/
CACHE_DIR: vendor/bundle/
cache:
paths:
- vendor/bundle/
.build: .build:
stage: build stage: build
...@@ -18,13 +15,16 @@ cache: ...@@ -18,13 +15,16 @@ cache:
- apt-get update -qy - apt-get update -qy
- gem install bundler - gem install bundler
- cd web/ - cd web/
- bundle config set --local path 'vendor/bundle' - bundle config set --local path $CACHE_DIR
- bundle install - bundle install
script: script:
- bundle exec jekyll build -d $BUILD_DIR --config $CONFIG - bundle exec jekyll build -d $BUILD_DIR --config $CONFIG
artifacts: artifacts:
paths: paths:
- web/$BUILD_DIR - web/$BUILD_DIR
cache:
paths:
- web/$CACHE_DIR
.deploy: .deploy:
stage: deploy stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment