From 69559566ef49af4d9f177a4d1c80e4093fcb371e Mon Sep 17 00:00:00 2001
From: Matthias Stefan Bodenbenner <m.bodenbenner@wzl.rwth-aachen.de>
Date: Mon, 7 Mar 2022 15:53:59 +0100
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 65 ++++++++++++++++++++++++++++++--------------------
 1 file changed, 39 insertions(+), 26 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6ba2019..eb97457 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,36 +33,49 @@ Push Wheel to Package Registry:
     - python -m twine upload -u gitlab-ci-token -p $CI_JOB_TOKEN --verbose --repository-url https://git-ce.rwth-aachen.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*
 
 Build Documentation:
-  image: docker:20.10
+ # image: docker:20.10
+ # stage: build
+ # only:
+ #   - master
+ # tags:
+ #   - frodo
+ # script:
+ #   - docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}  .
+  image: python:3.9
   stage: build
-  only:
-    - master
   tags:
     - frodo
-  script:
-    - docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}  .
-
-Push Documentation:
-  image: docker:20.10
-  stage: push
   only:
     - master
-  tags:
-    - frodo
   script:
-    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-    - docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest
+    - pip3 install -r requirements.txt
+    - cd doc
+    - make htmlc
+  artifacts:
+    paths:
+      - /home/doc/build/html
 
-Deploy Documentation:
-  stage: deploy
-  only:
-    - master
-  tags:
-    - sam
-  needs: ["Push Documentation"]
-  script:
-    - ls
-    - docker stop documentation-mqtt
-    - docker container rm documentation-mqtt
-    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-    - docker-compose up -d
+#Push Documentation:
+#  image: docker:20.10
+#  stage: push
+#  only:
+#    - master
+#  tags:
+#    - frodo
+#  script:
+#    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+#    - docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest
+
+#Deploy Documentation:
+#  stage: deploy
+#  only:
+#    - master
+#  tags:
+#    - sam
+#  needs: ["Push Documentation"]
+#  script:
+#    - ls
+#    - docker stop documentation-mqtt
+#    - docker container rm documentation-mqtt
+#    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+#    - docker-compose up -d
-- 
GitLab