From 3664f47aab543a1cf396a2cb93fac8a9560481ce Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Sun, 25 Jun 2017 17:55:07 +0200
Subject: [PATCH] Try to build front using docker runner instead of dind

---
 .gitlab-ci.yml | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c1101623..aed40036 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,3 @@
-image: docker:latest
-
 stages:
   - build
   - test
@@ -18,11 +16,10 @@ test_api:
 
 build_front:
   stage: build
-  before_script:
-    - docker-compose -f dev.yml run front rm dist/*
-    - docker-compose -f dev.yml build front
+  image: node:6-alpine
   script:
-    - docker-compose -f dev.yml run front npm run build
+    - npm install
+    - npm run build
   artifacts:
     paths:
       - front/dist
@@ -30,7 +27,8 @@ build_front:
     - master
     - develop
   tags:
-    - dind
+    - docker
+
 # When using dind, it's wise to use the overlayfs driver for
 # improved performance.
 # variables:
-- 
GitLab