Skip to content

Commit

Permalink
Update Docker build workflow to capture app logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdaprod committed Feb 13, 2024
1 parent b3008c1 commit d18acc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-capture-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
sleep 10 # Adjust sleep as necessary to allow your application to initialize and generate logs
docker stop python-app
wait $APP_PID
cat app_stdout.txt
cat app_stderr.txt >&2 # Direct stderr to the workflow's stderr to highlight errors
- name: Capture Container Logs
run: docker logs python-app > container_logs.txt
Expand Down

0 comments on commit d18acc8

Please sign in to comment.