diff --git a/.woodpecker.yml b/.woodpecker.yml index e51b35c..be67e63 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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