Skip to content

Commit f286d33

Browse files
authored
Update lens-deployment.yml
1 parent aa16699 commit f286d33

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/lens-deployment.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,27 @@ jobs:
3939
# Clone/pull latest code
4040
if [ -d "$REPO_NAME" ]; then
4141
cd $REPO_NAME
42+
echo "Pulling latest changes in existing repository"
4243
git fetch
4344
git checkout $BRANCH
4445
git pull origin $BRANCH
4546
else
47+
echo "Cloning fresh repository"
4648
git clone -b $BRANCH $REPO_URL $REPO_NAME
4749
cd $REPO_NAME
4850
fi
4951
5052
echo '${{ secrets.WHITELIST_JSON }}' > whitelist.json
5153
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
5557
56-
docker compose build --no-cache
57-
docker compose up -d
58+
echo "Cleaning up old images"
5859
docker image prune -f
5960
6061
# Wait for service to be healthy
62+
echo "Waiting for service to become healthy..."
6163
for i in {1..30}; do
6264
if curl -s http://localhost:8000/health | grep -q "ok"; then
6365
echo "Service is healthy"
@@ -100,21 +102,27 @@ jobs:
100102
# Clone/pull latest code
101103
if [ -d "$REPO_NAME" ]; then
102104
cd $REPO_NAME
105+
echo "Pulling latest changes in existing repository"
103106
git fetch
104107
git checkout $BRANCH
105108
git pull origin $BRANCH
106109
else
110+
echo "Cloning fresh repository"
107111
git clone -b $BRANCH $REPO_URL $REPO_NAME
108112
cd $REPO_NAME
109113
fi
110114
111115
echo '${{ secrets.WHITELIST_JSON }}' > whitelist.json
112116
117+
echo "Building and starting all services on LVM1"
113118
docker compose build --no-cache
114119
docker compose up -d
120+
121+
echo "Cleaning up old images"
115122
docker image prune -f
116123
117124
# Wait for service to be healthy
125+
echo "Waiting for service to become healthy..."
118126
for i in {1..30}; do
119127
if curl -s http://localhost:8000/health | grep -q "ok"; then
120128
echo "Service is healthy"

0 commit comments

Comments
 (0)