20 lines
557 B
YAML
20 lines
557 B
YAML
kind: pipeline
|
|
type: docker # Essential for Docker execution
|
|
|
|
name: restart-discord-bot
|
|
|
|
when:
|
|
- branch: main
|
|
event: push
|
|
|
|
steps:
|
|
- name: restart-bot
|
|
image: docker # Image with Docker Compose
|
|
volumes:
|
|
# Using the short syntax to reference globally defined named volumes
|
|
- /var/run/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
|
|
- docker restart python-app
|