ci: stop prod bot and disable restart policy
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user