Files
Acrybot/.woodpecker.yml
BigGamerGary 4f7e2373cd
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Removed bottom volumes moving host path upwards
2025-08-13 20:40:42 +10:00

28 lines
859 B
YAML

kind: pipeline
type: docker # Essential for Docker execution
name: restart-discord-bot
trigger:
branch:
- main
event:
- push
steps:
- name: restart-bot
image: docker/compose # Image with Docker Compose
volumes:
# Using the short syntax to reference globally defined named volumes
- docker_sock:/var/run/docker.sock # Maps named volume 'docker_sock' to container path
- /home/gary/Discord/Acrybot:/app # Maps named volume 'docker_compose_dir' to container path
commands:
- cd /app
# Execute the Docker Compose command
# IMPORTANT: Replace 'your_bot_service_name' with your actual service name.
- ls
- pwd
- docker-compose restart python-app
# Uncomment the line below if you use older Docker Compose (with a hyphen)
# - docker-compose restart your_bot_service_name