Compare commits
5 Commits
main
...
stop-prod-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68abcd1159 | ||
|
|
4ff80011e6 | ||
|
|
dae88ec99a | ||
|
|
82011a33af | ||
|
|
90886ac469 |
17
.gitea/workflows/stop-prod.yaml
Normal file
17
.gitea/workflows/stop-prod.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: "Stop Prod Bot"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
stop:
|
||||
runs-on: arm64
|
||||
defaults:
|
||||
run:
|
||||
shell: sh
|
||||
steps:
|
||||
- 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 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