Hetzner/gitea/deploy.sh

8 lines
288 B
Bash
Raw Normal View History

2022-12-30 16:57:31 +01:00
#!/bin/bash
2022-12-30 17:12:47 +01:00
echo "Creating virtual enviroment ..."
python3 -m venv hetz_gitea_venv
echo "Installing dependencies ..."
pip install -q hcloud
2022-12-30 16:57:31 +01:00
echo "Initiating gitea cloud deploy ..."
2022-12-30 17:12:47 +01:00
chmod +x a.py
python3 a.py $(cat ../token_file.txt) $(find ~ -name *.pub | tail -n 1 | xargs cat) "478874"