From d294b54544ad7f1643d7914e82fc332b91f12481 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Mon, 19 Aug 2019 12:21:01 +0200 Subject: [PATCH] fixed node cache --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d30133a..7eb007d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,7 +51,7 @@ build: fi # Build the dependencies - docker pull $CI_APPLICATION_REPOSITORY:node || true - - docker run --rm --name metager-proxy-npm-install --tag $CI_APPLICATION_REPOSITORY:node -v "$PWD":/usr/src/app -w /usr/src/app node:8 bash -c "npm install && chmod -R go+w node_modules && npm run watch" + - docker run --rm --name metager-proxy-npm-install --tag $CI_APPLICATION_REPOSITORY:node --cache-from $CI_APPLICATION_REPOSITORY:node -v "$PWD":/usr/src/app -w /usr/src/app node:8 bash -c "npm install && chmod -R go+w node_modules && npm run watch" - docker push $CI_APPLICATION_REPOSITORY:node - docker run --rm -v $(pwd):/app composer/composer:latest install - docker pull $CI_APPLICATION_REPOSITORY:latest || true -- GitLab