From 7c976d602bb1ff33d8a430de9fd70df614e511b3 Mon Sep 17 00:00:00 2001
From: plup <plup@plup.io>
Date: Wed, 20 Nov 2019 22:20:37 +0100
Subject: [PATCH] cicd: removed windows linebreak

---
 .gitlab-ci.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bdeff263..34847816 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,8 +8,7 @@ deploy_staging:
   environment: staging
   script:
     - echo $APP_CONFIG > config.json
-    - echo $SSH_PRIVATE_KEY | tr -d '\r' > gitlab.key
-    - chmod 600 gitlab.key
+    - echo $SSH_PRIVATE_KEY > gitlab.key && sed -i 's/\r /\n/g' gitlab.key && chmod 600 gitlab.key
     - cat gitlab.key
     - npm install
     - npm run build
-- 
GitLab