Added debugging
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-08-13 20:55:36 +10:00
parent ce7dd4ab94
commit b1b040f2a5

View File

@@ -8,6 +8,30 @@ when:
event: push event: push
steps: 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 - name: restart-bot
image: docker # Image with Docker Compose image: docker # Image with Docker Compose
volumes: volumes:
@@ -18,5 +42,3 @@ steps:
- cd /app - cd /app
- docker compose down - docker compose down
- docker compose up -d - docker compose up -d
# Uncomment the line below if you use older Docker Compose (with a hyphen)
# - docker-compose restart your_bot_service_name