From 2f42b727ecdd687a2c73cdf711092f6943097808 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Mon, 19 Aug 2019 12:20:09 +0200 Subject: [PATCH] caching for ndoe container --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0329805..d30133a 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 - | -- GitLab