@@ -39,25 +39,27 @@ jobs:
39
39
# Clone/pull latest code
40
40
if [ -d "$REPO_NAME" ]; then
41
41
cd $REPO_NAME
42
+ echo "Pulling latest changes in existing repository"
42
43
git fetch
43
44
git checkout $BRANCH
44
45
git pull origin $BRANCH
45
46
else
47
+ echo "Cloning fresh repository"
46
48
git clone -b $BRANCH $REPO_URL $REPO_NAME
47
49
cd $REPO_NAME
48
50
fi
49
51
50
52
echo '${{ secrets.WHITELIST_JSON }}' > whitelist.json
51
53
52
- # Remove fallback_monitor service as this is LVM2
53
- yq eval 'del(.services.fallback_monitor)' docker-compose.yaml > docker-compose.tmp.yaml
54
- mv docker- compose.tmp.yaml docker-compose.yaml
54
+ echo "Building and starting turbo-da-core service on LVM2"
55
+ docker compose build --no-cache turbo-da-core
56
+ docker compose up -d turbo-da-core
55
57
56
- docker compose build --no-cache
57
- docker compose up -d
58
+ echo "Cleaning up old images"
58
59
docker image prune -f
59
60
60
61
# Wait for service to be healthy
62
+ echo "Waiting for service to become healthy..."
61
63
for i in {1..30}; do
62
64
if curl -s http://localhost:8000/health | grep -q "ok"; then
63
65
echo "Service is healthy"
@@ -100,21 +102,27 @@ jobs:
100
102
# Clone/pull latest code
101
103
if [ -d "$REPO_NAME" ]; then
102
104
cd $REPO_NAME
105
+ echo "Pulling latest changes in existing repository"
103
106
git fetch
104
107
git checkout $BRANCH
105
108
git pull origin $BRANCH
106
109
else
110
+ echo "Cloning fresh repository"
107
111
git clone -b $BRANCH $REPO_URL $REPO_NAME
108
112
cd $REPO_NAME
109
113
fi
110
114
111
115
echo '${{ secrets.WHITELIST_JSON }}' > whitelist.json
112
116
117
+ echo "Building and starting all services on LVM1"
113
118
docker compose build --no-cache
114
119
docker compose up -d
120
+
121
+ echo "Cleaning up old images"
115
122
docker image prune -f
116
123
117
124
# Wait for service to be healthy
125
+ echo "Waiting for service to become healthy..."
118
126
for i in {1..30}; do
119
127
if curl -s http://localhost:8000/health | grep -q "ok"; then
120
128
echo "Service is healthy"
0 commit comments