From 91cd6d353e21be06af4bbf958d7fc651c9dec91c Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Mon, 2 May 2022 15:02:05 +0200
Subject: [PATCH] fix: cicd

---
 .gitlab-ci.yml     | 4 ++--
 manifest.konnector | 3 +++
 package.json       | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2e2e725..e03917b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,7 +24,7 @@ build-dev:
   script:
     - yarn
     - yarn build
-    - git config --global user.name build-pipeline
+    - git config --global user.name build-token
     - git config --global user.email "$GIT_USER"
     - git config --global user.password "$GIT_PWD"
     - git config user.email "$GIT_USER"
@@ -41,7 +41,7 @@ build:
   script:
     - yarn
     - yarn build
-    - git config --global user.name build-pipeline
+    - git config --global user.name build-token
     - git config --global user.email "$GIT_USER"
     - git config --global user.password "$GIT_PWD"
     - git config user.email "$GIT_USER"
diff --git a/manifest.konnector b/manifest.konnector
index 29b0c77..a0e8962 100644
--- a/manifest.konnector
+++ b/manifest.konnector
@@ -37,6 +37,9 @@
     "accounts": {
       "type": "io.cozy.accounts",
       "verbs": ["GET"]
+    },
+    "files": {
+      "type": "io.cozy.files"
     },
      "enedis data": {
       "type": "com.grandlyon.enedis.*"
diff --git a/package.json b/package.json
index 6d450b8..f26d68d 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
     "clean": "rm -rf ./data",
     "build": "webpack",
     "lint": "eslint --fix .",
-    "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-$npm_package_repository_url}",
+    "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build}",
     "deploy-dev": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build-dev} --repo=${DEPLOY_REPOSITORY:-https://forge.grandlyon.com/web-et-numerique/llle_project/enedis-konnector.git}",
     "cozyPublish": "cozy-app-publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})",
     "travisDeployKey": "./bin/generate_travis_deploy_key"
-- 
GitLab