File tree Expand file tree Collapse file tree 1 file changed +19
-8
lines changed
Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments