Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit c065ba6

Browse files
committed
Tag with version num for better history
This will make the history in the DO registry much better if we ever have to revert servers to an earlier version
1 parent 61dec96 commit c065ba6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/install_new_image.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3+
if [ $# -eq 0 ]
4+
then
5+
echo "Usage: install_new_image.sh <release no>"
6+
exit
7+
fi
8+
39
set -e
410

511
cd /home/bmiller/Runestone/RunestoneServer/production
@@ -11,7 +17,7 @@ fi
1117

1218
# pull the latest
1319
git pull
14-
docker pull registry.digitalocean.com/runestone-registry/production_server:latest
20+
docker pull registry.digitalocean.com/runestone-registry/production_server:version$1
1521

1622
docker compose stop
1723
docker compose up -d

0 commit comments

Comments
 (0)