vfedotovs / sslv_web_scraper

ss.lv web scraping app helps automate information scraping and filtering from classifieds and emails results and stores scraped data in database
GNU General Public License v3.0
5 stars 3 forks source link

FEAT: Add rule in CICD if any container is in Restarting state job needs to fail #179

Open vfedotovs opened 1 year ago

vfedotovs commented 1 year ago

Web scarper version: 1.4.12

Steps to reproduce container build step must fail

        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     
vfedotovs commented 1 year ago

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.