diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d30133a82d9dce53d3262be4ef294b7ae9e5e466..7eb007dbe87761503942d26635e1e31107d92d11 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