From 7d65b0bfb021db3789db4ee27a3b308b23b596d6 Mon Sep 17 00:00:00 2001
From: Dominik Sigmund <dominik.sigmund@br.de>
Date: Mon, 2 Mar 2020 11:27:23 +0100
Subject: [PATCH] Update .gitlab-ci.yml

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df7c8dd..570c86f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,8 @@ include:
 variables:
   SONAR_PROJECT_KEY: config
   SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8
-  NPM_REGISTRY: https://it-devops-01:4873
+  NPM_REGISTRY: http://it-devops-01:4873
+  NPM_TOKEN: ZMh1NzlklUTNNvt573Imgw==
 
 cache:
   paths:
@@ -43,9 +44,5 @@ test:
 publish to local npm:
   stage: publish
   script:
-    - echo 'strict-ssl=false' > .npmrc
-    - echo '@br:registry=https://it-devops-01:4873/' >> .npmrc
-    - echo '//it-devops-01:4873/:_authToken="ZMh1NzlklUTNNvt573Imgw=="' >> .npmrc
-    - npm set ca null
-    - cat .npmrc
-    - npm publish
+    - echo '//it-devops-01:4873/:_authToken=${NPM_TOKEN}'>.npmrc
+    - npm publish --registry $NPM_REGISTRY
-- 
GitLab