Name Command State Ports
------------------------------------------------------------------------------
sslv_web_scraper_db_1 docker-entrypoint.sh postgres Up 5432/tcp
sslv_web_scraper_ts_1 python ./ts.py Up
sslv_web_scraper_ws_1 uvicorn app.main:app --hos ... Restarting
Proposal
Within your workflow file (e.g., .github/workflows/main.yml), add a step after the container deployment step to check the container's restart status.
name: Check container restart count
run: |
restart_count=$(docker inspect -f '{{ .RestartCount }}' )
threshold=3
if [ "$restart_count" -gt "$threshold" ]; then
echo "Container has exceeded the restart threshold ($threshold)"
exit 1
fi
Web scarper version: 1.4.12
Steps to reproduce container build step must fail