From 5536ac35d157618aca616c9369833354e87b3775 Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Thu, 26 Sep 2019 01:02:29 +0200 Subject: [PATCH] Cache node_modules --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f6f8f5..10be815 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,9 +26,10 @@ deploy-prod: - chmod 700 "$SSH_DEPLOY_KEY" - rsync -e "ssh -i $SSH_DEPLOY_KEY" --delete-after -rlptP public/ "$SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:/www.poul.org/" cache: - key: gems + key: build-deps paths: - - "/usr/local/bundle" + - "/usr/local/bundle/" + - "node_modules/" only: - master @@ -40,8 +41,9 @@ pages: paths: - public cache: - key: gems + key: build-deps paths: - - "/usr/local/bundle" + - "/usr/local/bundle/" + - "node_modules/" only: - develop -- GitLab