Skip to content
Snippets Groups Projects
Commit 39c57a69 authored by Mohammed Rachid BENHAMMOU's avatar Mohammed Rachid BENHAMMOU
Browse files

Update .gitlab-ci.yml

parent 9b3806b0
Branches
No related tags found
No related merge requests found
Pipeline #65831 passed
...@@ -47,7 +47,7 @@ deploy_trainee_repository: ...@@ -47,7 +47,7 @@ deploy_trainee_repository:
- cd scripts - cd scripts
- python deploy_trainee_repo.py - python deploy_trainee_repo.py
variables: 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 when: manual
cache: cache:
paths: paths:
...@@ -72,7 +72,7 @@ clean_trainee_repository: ...@@ -72,7 +72,7 @@ clean_trainee_repository:
- cd scripts - cd scripts
- python clean_trainee_repo.py - python clean_trainee_repo.py
variables: variables:
GIT_TRAINEE_REPOSITORY: "gitlab.takima.io/hackathon-iot/takiot-course.git" GIT_TRAINEE_REPOSITORY: "gitlab.takima.io/school/formation-angular/tp-angular"
cache: cache:
paths: paths:
- .cache/pip - .cache/pip
......
import os import os
# Public Git Repo for Trainees # Public Git Repo for the Trainees
GIT_REPOSITORY = os.getenv("GIT_TRAINEE_REPOSITORY") GIT_REPOSITORY = os.getenv("GIT_TRAINEE_REPOSITORY")
GIT_USERNAME = os.getenv("GIT_TRAINEE_ACCESS_TOKEN_NAME") GIT_USERNAME = os.getenv("GIT_TRAINEE_ACCESS_TOKEN_NAME")
GIT_PASSWORD = os.getenv("GIT_TRAINEE_ACCESS_TOKEN_SECRET") GIT_PASSWORD = os.getenv("GIT_TRAINEE_ACCESS_TOKEN_SECRET")
......
...@@ -10,7 +10,7 @@ public_docs_dir = repodir + "/public" ...@@ -10,7 +10,7 @@ public_docs_dir = repodir + "/public"
def init_with_resources(): def init_with_resources():
print("Copying resources to " + repodir) print("Copying resources to " + repodir)
shutil.copytree("../resources/boilerplate/takiot-course", repodir) shutil.copytree("../resources/boilerplate/tp-angular", repodir)
print("Building docs") print("Building docs")
return_code = subprocess.call("cd ../resources/docs && mkdocs build", shell=True) return_code = subprocess.call("cd ../resources/docs && mkdocs build", shell=True)
if (return_code != 0): if (return_code != 0):
...@@ -25,7 +25,7 @@ def clean_trainee_doc(): ...@@ -25,7 +25,7 @@ def clean_trainee_doc():
exit(1) exit(1)
print("Copying resources to " + public_docs_dir) print("Copying resources to " + public_docs_dir)
shutil.copytree("../resources/boilerplate/emptydocs/site", 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(): def commit_and_push_force_master():
repo = Repo.init(repodir) repo = Repo.init(repodir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment