From 308458772bc05e2fc4db62e9ba2650794a23d77c Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Wed, 23 Jun 2021 12:54:43 +0200
Subject: [PATCH] [fix] FIx CI build

---
 .gitlab-ci.yml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f563fb864..93da1dbe8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,15 +40,15 @@ variables:
 
 .docker:
   image: docker:latest
-  tags: [ redshift ]
+  tags: [redshift]
   services:
     - docker:dind
   before_script:
-    - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
-    #- docker login -u "${CI_BUILD_USER}" -p "${CI_BUILD_TOKEN}"
+    - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} || true
+  after_script:
+    - docker logout ${CI_REGISTRY}
   allow_failure: false
 
-
 # ---------------------------------------------------------------
 # Build jobs
 # ---------------------------------------------------------------
@@ -57,9 +57,7 @@ fast-build:
   extends: .build
   image: ${CONTAINER_BUILD_IMAGE}
   before_script:
-    - mv /customCache/node_modules ./
-    - cp -rf /customCache/www ./
-    - cp -rf /customCache/hooks ./
+    - mv /.build-cache/node_modules ./
   only:
     - develop
 
@@ -79,7 +77,7 @@ docker-for-fast-build:
   allow_failure: true
   before_script:
     - echo 'FROM node:12' > Dockerfile
-    - echo 'WORKDIR /customCache' >> Dockerfile
+    - echo 'WORKDIR /.build-cache' >> Dockerfile
     - echo 'COPY ./ ./' >> Dockerfile
     - echo 'RUN du -s `find . -maxdepth 1 | egrep -v "^\.$"`>/before.txt' >> Dockerfile
     - echo 'RUN yarn' >> Dockerfile
-- 
GitLab