Files
Acrybot/.woodpecker.yml

25 lines
989 B
YAML

kind: pipeline # Defines this as a Woodpecker CI pipeline.
name: restart-discord-bot # A descriptive name for your pipeline.
# Defines when this pipeline should be triggered.
when:
- event: push
branch: main
steps:
- name: restart-bot # Name of the step that restarts your bot.
image: docker/compose:latest # Uses a Docker Compose-enabled image.
volumes:
- name: docker_compose_dir
path: /app
host:
path: /home/gary/Discord/Acrybot
commands:
- cd /app
# The command to restart your Discord bot service using Docker Compose.
# IMPORTANT: Replace 'your_bot_service_name' with the actual name
# of your Discord bot's service defined in your docker-compose.yml file.
# Use 'docker compose' for newer Docker versions (v2) or 'docker-compose' for older ones.
- docker compose restart python-app
# - docker-compose restart your_bot_service_name # Uncomment this line if you use older Docker Compose.