noo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-08-13 21:50:13 +10:00
parent 6f30a23b49
commit c088dd276e

View File

@@ -36,15 +36,18 @@ steps:
# matching your existing containers.
COMPOSE_PROJECT_NAME: acrybot # Changed to lowercase 'acrybot'
commands:
- echo "--- Building 'python-app' image without cache to ensure latest code ---"
# Explicitly build the image for 'python-app' with --no-cache
- docker compose build --no-cache python-app
- echo "--- Stopping Discord bot service python-app ---"
# Stop the specific Discord bot service using the unhyphenated 'docker compose'.
- docker compose stop python-app
- echo "--- Bringing Discord bot service up python-app ---"
# Bring the specific Discord bot service back up using the unhyphenated 'docker compose'.
# '--build' is essential if your docker-compose.yml uses 'build: .' to create the image,
# as it ensures the image is rebuilt with the newly pulled source code.
- docker compose up -d python-app --build
# '--build' is no longer needed here as it was already forced by 'docker compose build --no-cache'.
- docker compose up -d python-app
- echo "--- Verifying bot status ---"
# Directly check the status of the service using docker compose ps