ci: stop prod bot and disable restart policy

This commit is contained in:
NW
2026-08-07 16:18:01 +01:00
parent 4ff80011e6
commit 68abcd1159

View File

@@ -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"