-
Notifications
You must be signed in to change notification settings - Fork 12
/
deploy.sh
22 lines (16 loc) · 1007 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -e
to_build=$1
if [ "$to_build" == hub ]; then
docker image save ss14_serverhub | gzip | ssh pebbles "podman load -q && podman image tag docker.io/library/ss14_serverhub localhost/ss14_serverhub" &
docker image save ss14_serverhub | gzip | ssh nsh "podman load -q && podman image tag docker.io/library/ss14_serverhub localhost/ss14_serverhub" &
fi
if [ "$to_build" == auth ]; then
docker image save ss14_auth | gzip | ssh pebbles "podman load -q && podman image tag docker.io/library/ss14_auth localhost/ss14_auth" &
docker image save ss14_auth | gzip | ssh nsh "podman load -q && podman image tag docker.io/library/ss14_auth localhost/ss14_auth" &
fi
if [ "$to_build" == web ]; then
docker image save ss14_web | gzip | ssh pebbles "podman load -q && podman image tag docker.io/library/ss14_web localhost/ss14_web" &
docker image save ss14_web | gzip | ssh nsh "podman load -q && podman image tag docker.io/library/ss14_web localhost/ss14_web" &
fi
wait $(jobs -p)