-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate.sh
More file actions
34 lines (26 loc) · 934 Bytes
/
update.sh
File metadata and controls
34 lines (26 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
echo "This script will checkout the latest tagged version from both the Refractor and Refractor-Svelte repositories."
echo ""
echo "Checking out latest tag of backend service..."
git fetch --tags
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag > /dev/null
echo ""
echo "Successfully checked out latest tag."
echo ""
echo "Checking out latest tag of frontend application..."
cd Refractor-Svelte
git fetch --tags
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag > /dev/null
cd ..
echo ""
echo "Successfully checked out latest tag."
echo ""
echo ""
echo "Rebuilding services..."
echo "Please let this script run uninterrupted until it's finished."
docker-compose -f docker-compose.yml -f compose-frontend-svelte.yml up -d --force-recreate --build --no-deps refractor refractor-frontend
echo ""
echo ""
echo "Services updated!"