We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0094127 commit a6b741bCopy full SHA for a6b741b
.github/workflows/deploy.yaml
@@ -178,6 +178,13 @@ jobs:
178
# Run migrations
179
docker exec $BACKEND_CONTAINER php artisan migrate --force
180
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
+
188
# Clean up unused images
189
docker image prune -a -f
190
0 commit comments