diff --git a/.gitea/workflows/stop-prod.yaml b/.gitea/workflows/stop-prod.yaml index db7e711..51c2d62 100644 --- a/.gitea/workflows/stop-prod.yaml +++ b/.gitea/workflows/stop-prod.yaml @@ -8,9 +8,10 @@ jobs: run: shell: sh steps: - - name: Install docker-cli and stop bot + - name: Check and stop bot run: | apk add --no-cache docker-cli >/dev/null 2>&1 || true - docker ps -a --format '{{.Names}} {{.Status}}' | grep telegram_shop_prod || echo "no telegram_shop_prod container" - docker stop telegram_shop_prod || echo "container not found or already stopped" + docker ps -a --format '{{.Names}} {{.Status}}' | grep telegram_shop_prod || echo "no container" + docker stop telegram_shop_prod || echo "already stopped" + docker update --restart=no telegram_shop_prod 2>/dev/null || echo "no update" docker ps -a --format '{{.Names}} {{.Status}}' | grep telegram_shop_prod || echo "confirmed stopped"