Skip to content

Commit 2d7e02d

Browse files
committed
logs added
1 parent e806098 commit 2d7e02d

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/main.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,26 @@ jobs:
159159
# --------------------------------------------------
160160
# 1️⃣3️⃣ Status & logs (demo-2-otel)
161161
# --------------------------------------------------
162-
- name: Status & logs - demo-2-otel
163-
working-directory: demo/demo-2-otel
162+
# - name: Status & logs - demo-2-otel
163+
# working-directory: demo/demo-2-otel
164+
# run: |
165+
# echo "📦 Containers:"
166+
# podman ps -a
167+
# echo "📜 Logs:"
168+
# podman-compose logs || true
169+
170+
# podman-compose down -v
171+
172+
- name: Show Container Logs
173+
working-directory: demo/demo-2-0tel
164174
run: |
165-
echo "📦 Containers:"
166-
podman ps -a
167-
echo "📜 Logs:"
168-
podman-compose logs || true
169-
170-
podman-compose down -v
175+
echo "Displaying logs for all containers..."
176+
podman ps --format "{{.Names}}" | while read -r c; do
177+
echo "----------------------------"
178+
echo "Logs for: $c"
179+
echo "----------------------------"
180+
podman logs "$c" || echo "No logs for $c"
181+
done
171182
172183
# --------------------------------------------------
173184
# 1️⃣4️⃣ Final cleanup

0 commit comments

Comments
 (0)