Files
Acrybot/.woodpecker.yml
2025-08-13 19:23:23 +10:00

36 lines
978 B
YAML

kind: pipeline
type: docker
name: restart-discord-bot
trigger:
branch:
- main
event:
- push
steps:
- name: test-compose-access
image: docker/compose:latest
volumes:
- name: docker_sock
path: /var/run/docker.sock
- name: docker_compose_dir
path: /app
commands:
- ls -la /app # List contents of the mounted directory
- docker --version # Check if Docker CLI is available
- docker compose version # Check Docker Compose version
- cd /app
- pwd # Print current working directory
- ls # List files in the current directory (should see docker-compose.yml)
# Temporarily comment out the restart command until previous ones succeed
# - docker compose restart your_bot_service_name
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
- name: docker_compose_dir
host:
path: /home/gary/Discord/Acrybot # Updated path to your Docker Compose directory