From 6f30a23b4969abcd2df035588271a08f7a742c68 Mon Sep 17 00:00:00 2001 From: BigGamerGary Date: Wed, 13 Aug 2025 21:46:38 +1000 Subject: [PATCH] a bit more bs --- .woodpecker.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 288ac8f..e51b35c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -19,7 +19,7 @@ steps: - cd /app # Navigate to the mounted project directory. # Configure Git to trust the mounted directory to avoid 'unsafe repository' warnings. - git config --global --add safe.directory /app - - git pull # Pull the latest changes from the 'main' branch. + - git pull # Pulls the latest changes from the tracking branch. - echo "Source code updated." - name: manage-bot-containers # Step 2: Manage your bot's Docker containers. @@ -31,10 +31,10 @@ steps: # Mount your Docker Compose project directory into the container. - /home/gary/Discord/Acrybot:/app environment: - # IMPORTANT: Explicitly set the Docker Compose project name. - # This ensures containers are managed with the 'Acrybot' prefix, + # IMPORTANT: Explicitly set the Docker Compose project name to lowercase. + # This ensures containers are managed with the 'acrybot' prefix, # matching your existing containers. - COMPOSE_PROJECT_NAME: acrybot + COMPOSE_PROJECT_NAME: acrybot # Changed to lowercase 'acrybot' commands: - echo "--- Stopping Discord bot service python-app ---" # Stop the specific Discord bot service using the unhyphenated 'docker compose'. @@ -47,6 +47,8 @@ steps: - docker compose up -d python-app --build - echo "--- Verifying bot status ---" - # Get the container ID of the bot service to inspect its status and logs - - echo "--- Logs of Discord bot container (if it exited) ---" - - docker logs "${BOT_CONTAINER_ID}" # Fetch the logs of the bot container + # Directly check the status of the service using docker compose ps + - docker compose ps python-app + - echo "--- Logs of Discord bot service ---" + # Fetch the logs of the bot service using docker compose logs + - docker compose logs python-app