~starkingdoms/starkingdoms

cb213f2fd483bc3dda63749bde7ca2ac170b3351 — c0repwn3r 2 years ago b35eff7
add infra build command
1 files changed, 6 insertions(+), 0 deletions(-)

M spacetime
M spacetime => spacetime +6 -0
@@ 46,6 46,7 @@ sub_help() {
  echo "    build_docker_server_stable - Build the server container and push it as server-stable" # done
  echo "    build_docker_web_stable - Build the web dockerfile and push it as web-stable" # done
  echo "    build_docker_stable - Build the stable api, web and server containers" # done
  echo "    infra [action] - Run an infrastructure command. Requires an infrastructure key" # done
}

check_install_cargo() {


@@ 248,6 249,11 @@ sub_build_docker_stable() {
  sub_build_docker_web_stable
}

sub_infra() {
  echo "[*] Connecting to infrastructure manager server. If you are prompted for a password, enter your infrastructure key. You may be prompted several times."
  ssh team@10.16.1.3 /home/team/run_ansible.sh "$1"
}

subcommand=$1
case $subcommand in
    "" | "-h" | "--help" | "help")