From db292bb67c583e26f6293f1d4c0db6c23c543cf7 Mon Sep 17 00:00:00 2001 From: Kuba Date: Mon, 30 Jan 2023 22:47:35 +0100 Subject: [PATCH] automate deploy --- load-balancer/deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 load-balancer/deploy.sh diff --git a/load-balancer/deploy.sh b/load-balancer/deploy.sh new file mode 100755 index 0000000..a4640bd --- /dev/null +++ b/load-balancer/deploy.sh @@ -0,0 +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 ..." +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