From ba4ae3d05b2ee41d2c04480263d5189f409a4169 Mon Sep 17 00:00:00 2001
From: Cyril L'Orphelin <cyril.lorphelin@cc.in2p3.fr>
Date: Wed, 5 Feb 2020 12:36:33 +0100
Subject: [PATCH] Add env.template

---
 .gitlab-ci.yml | 2 +-
 Dockerfile     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 05e08465..5b09bf5c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,7 +27,7 @@ job_test:
   stage: test
   script:
     - cd tms
-    - echo "${env_test}" > .env
+    - mv .env.template .env
 
 ## Install composer
     - curl -sS https://getcomposer.org/installer | php
diff --git a/Dockerfile b/Dockerfile
index 0a400a43..15adaf70 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,8 +26,8 @@ RUN git clone https://gitlab.in2p3.fr/cc-in2p3-dev/TMS tms
 RUN ls -lah
 WORKDIR /var/www/html/tms/tms
 
-RUN echo "${env_deploy}" > .env
-RUN echo "${env_deploy}" > .env.test
+RUN mv .env.template .env
+
 RUN ls -ahl
 
 RUN curl -sS https://getcomposer.org/installer | php
-- 
GitLab