Skip to content

Commit a6b741b

Browse files
adding a cvheck on successfuk migrations
1 parent 0094127 commit a6b741b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ jobs:
178178
# Run migrations
179179
docker exec $BACKEND_CONTAINER php artisan migrate --force
180180
181+
# If fails, show error logs
182+
if [ $? -ne 0 ]; then
183+
echo "Migration failed! Showing logs:"
184+
docker logs $BACKEND_CONTAINER | grep -i error
185+
exit 1
186+
fi
187+
181188
# Clean up unused images
182189
docker image prune -a -f
183190

0 commit comments

Comments
 (0)