diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0329805c432f1fd9c2f442a17577dec504a4385c..d30133a82d9dce53d3262be4ef294b7ae9e5e466 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,7 +50,9 @@ build: cp /build/Dockerfile Dockerfile fi # Build the dependencies - - docker run --rm --name metager-proxy-npm-install -v "$PWD":/usr/src/app -w /usr/src/app node:8 npm install && npm run prod + - 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 push $CI_APPLICATION_REPOSITORY:node - docker run --rm -v $(pwd):/app composer/composer:latest install - docker pull $CI_APPLICATION_REPOSITORY:latest || true - |