From 39c57a692e7aee6dfdf0ac4d999d2ded4e318294 Mon Sep 17 00:00:00 2001
From: Benhammou Mohammed Rachid <mrbenhammou@takima.fr>
Date: Tue, 21 May 2024 14:44:40 +0200
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml                                                | 4 ++--
 .../boilerplate/{takiot-course => tp-angular}/.gitlab-ci.yml  | 0
 scripts/constant.py                                           | 2 +-
 scripts/gitcontent/playerrepo.py                              | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
 rename resources/boilerplate/{takiot-course => tp-angular}/.gitlab-ci.yml (100%)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6bfaa7f..1f1fc9b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,7 +47,7 @@ deploy_trainee_repository:
     - cd scripts
     - python deploy_trainee_repo.py
   variables:
-    GIT_TRAINEE_REPOSITORY: "gitlab.takima.io/hackathon-iot/takiot-course.git"
+    GIT_TRAINEE_REPOSITORY: "gitlab.takima.io/school/formation-angular/tp-angular"
   when: manual
   cache:
     paths:
@@ -72,7 +72,7 @@ clean_trainee_repository:
     - cd scripts
     - python clean_trainee_repo.py
   variables:
-    GIT_TRAINEE_REPOSITORY: "gitlab.takima.io/hackathon-iot/takiot-course.git"
+    GIT_TRAINEE_REPOSITORY: "gitlab.takima.io/school/formation-angular/tp-angular"
   cache:
     paths:
       - .cache/pip
diff --git a/resources/boilerplate/takiot-course/.gitlab-ci.yml b/resources/boilerplate/tp-angular/.gitlab-ci.yml
similarity index 100%
rename from resources/boilerplate/takiot-course/.gitlab-ci.yml
rename to resources/boilerplate/tp-angular/.gitlab-ci.yml
diff --git a/scripts/constant.py b/scripts/constant.py
index 6c7fb2c..091257f 100644
--- a/scripts/constant.py
+++ b/scripts/constant.py
@@ -1,6 +1,6 @@
 import os
 
-# Public Git Repo for Trainees
+# Public Git Repo for the Trainees
 GIT_REPOSITORY = os.getenv("GIT_TRAINEE_REPOSITORY")
 GIT_USERNAME = os.getenv("GIT_TRAINEE_ACCESS_TOKEN_NAME")
 GIT_PASSWORD = os.getenv("GIT_TRAINEE_ACCESS_TOKEN_SECRET")
diff --git a/scripts/gitcontent/playerrepo.py b/scripts/gitcontent/playerrepo.py
index 471024a..0ee5d6e 100644
--- a/scripts/gitcontent/playerrepo.py
+++ b/scripts/gitcontent/playerrepo.py
@@ -10,7 +10,7 @@ public_docs_dir = repodir + "/public"
 
 def init_with_resources():
     print("Copying resources to " + repodir)
-    shutil.copytree("../resources/boilerplate/takiot-course", repodir)
+    shutil.copytree("../resources/boilerplate/tp-angular", repodir)
     print("Building docs")
     return_code = subprocess.call("cd ../resources/docs && mkdocs build", shell=True)
     if (return_code != 0):
@@ -25,7 +25,7 @@ def clean_trainee_doc():
         exit(1)
     print("Copying resources to " + public_docs_dir)
     shutil.copytree("../resources/boilerplate/emptydocs/site", public_docs_dir)
-    shutil.copy("../resources/boilerplate/takiot-course/.gitlab-ci.yml", repodir)
+    shutil.copy("../resources/boilerplate/tp-angular/.gitlab-ci.yml", repodir)
 
 def commit_and_push_force_master():
     repo = Repo.init(repodir)
-- 
GitLab