From a57184070f9ce95a4622fcf138a81e0c322168e2 Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Tue, 11 Oct 2022 15:18:24 +0200 Subject: [PATCH] CICD --- .gitlab-ci.yml | 1 + src/unlearn/tokenpage.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 518fa9f..7d9010d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ image: python:3.9-buster before_script: + - apt-get update - apt install -y xvfb libssl-dev firefox-dev firefox-geckodriver openssl - openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes - pip install -r requirements.txt diff --git a/src/unlearn/tokenpage.py b/src/unlearn/tokenpage.py index 0be0187..27c7b22 100644 --- a/src/unlearn/tokenpage.py +++ b/src/unlearn/tokenpage.py @@ -2,8 +2,12 @@ import os if __name__ == "__main__": pages = os.path.dirname(__file__) + "/../../public" + with open(os.path.dirname(__file__) + "/password.txt", 'r') as f: + password = f.read() + print("The learn password is", password) + if not os.path.isdir(pages): os.mkdir(pages) with open(pages + "/index.html", 'w') as f: - f.write("hello world!") + f.write("hello world! " + password) -- GitLab