Skip to content
Snippets Groups Projects
Commit a5718407 authored by tuhe's avatar tuhe
Browse files

CICD

parent 152cb0fb
Branches
No related tags found
No related merge requests found
Pipeline #8673 failed
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
......
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment