Skip to content

Commit

Permalink
Fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Jun 15, 2024
1 parent 8e8e35b commit f0d7f0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ set -e
to_build=$1

if [ "$to_build" == hub ]; then
docker image save ss14_serverhub | gzip | ssh pebbles podman load &
docker image save ss14_serverhub | gzip | ssh nsh podman load &
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 &
docker image save ss14_auth | gzip | ssh nsh podman load &
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 &
docker image save ss14_web | gzip | ssh nsh podman load &
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)

0 comments on commit f0d7f0a

Please sign in to comment.