diff --git a/.woodpecker.yml b/.woodpecker.yml index 68f516a..2443e9f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,6 +8,30 @@ when: event: push steps: + - name: debug-compose-environment # A new step for diagnostics + image: docker/compose:latest + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /home/gary/Discord/Acrybot:/app + commands: + - echo "--- Checking environment within pipeline container ---" + - pwd # Should be / + - cd /app + - pwd # Should be /app + - echo "Contents of /app (your mounted Docker Compose directory):" + - ls -la # Verify docker-compose.yml is here + - echo "Docker CLI Version:" + - docker --version + - echo "Docker Compose CLI Version:" + - docker compose version + - echo "--- Listing Docker Compose services (running and stopped) in this project context ---" + # This command lists all services (running and stopped) that docker compose finds in /app + - docker compose ps -a + # IMPORTANT: If 'docker compose ps -a' shows an empty list or doesn't list your service, + # it means Docker Compose isn't managing the running bot service from this specific + # docker-compose.yml file. + - echo "--- Attempting to restart the specific bot service ---" + - name: restart-bot image: docker # Image with Docker Compose volumes: @@ -18,5 +42,3 @@ steps: - cd /app - docker compose down - docker compose up -d - # Uncomment the line below if you use older Docker Compose (with a hyphen) - # - docker-compose restart your_bot_service_name