diff --git a/.gitignore b/.gitignore index a859d8d..ce3bc5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ -token* \ No newline at end of file +#token files +token* + +#venv folders +*/*venv \ No newline at end of file diff --git a/gitea/a.py b/gitea/a.py old mode 100644 new mode 100755 diff --git a/gitea/deploy.sh b/gitea/deploy.sh index f025778..a4640bd 100755 --- a/gitea/deploy.sh +++ b/gitea/deploy.sh @@ -1,3 +1,8 @@ #!/bin/bash +echo "Creating virtual enviroment ..." +python3 -m venv hetz_gitea_venv +echo "Installing dependencies ..." +pip install -q hcloud echo "Initiating gitea cloud deploy ..." -python3 a.py $(cat token_file.txt) $(find ~ -name *.pub | tail -n 1 | xargs cat) "478874" \ No newline at end of file +chmod +x a.py +python3 a.py $(cat ../token_file.txt) $(find ~ -name *.pub | tail -n 1 | xargs cat) "478874" \ No newline at end of file diff --git a/gitea/readme.md b/gitea/readme.md new file mode 100644 index 0000000..e69de29