This commit is contained in:
@@ -12,13 +12,10 @@ trigger:
|
|||||||
steps:
|
steps:
|
||||||
- name: restart-bot
|
- name: restart-bot
|
||||||
image: docker/compose:latest # Image with Docker Compose
|
image: docker/compose:latest # Image with Docker Compose
|
||||||
# volumes:
|
volumes:
|
||||||
# # Explicitly mounting docker_sock for this step's container
|
# Using the short syntax to reference globally defined named volumes
|
||||||
# - name: docker_sock
|
- docker_sock:/var/run/docker.sock # Maps named volume 'docker_sock' to container path
|
||||||
# path: /var/run/docker.sock
|
- docker_compose_dir:/app # Maps named volume 'docker_compose_dir' to container path
|
||||||
# # Mounting the docker-compose.yml directory
|
|
||||||
# - name: docker_compose_dir
|
|
||||||
# path: /app # Mount point inside the container
|
|
||||||
commands:
|
commands:
|
||||||
- cd /app
|
- cd /app
|
||||||
# Execute the Docker Compose command
|
# Execute the Docker Compose command
|
||||||
@@ -26,13 +23,13 @@ steps:
|
|||||||
- docker compose restart your_bot_service_name
|
- docker compose restart your_bot_service_name
|
||||||
# Uncomment the line below if you use older Docker Compose (with a hyphen)
|
# Uncomment the line below if you use older Docker Compose (with a hyphen)
|
||||||
# - docker-compose restart your_bot_service_name
|
# - docker-compose restart your_bot_service_name
|
||||||
# # Define the host paths for the named volumes.
|
|
||||||
# # These global volume definitions are used by the steps above.
|
# Define the host paths for the named volumes.
|
||||||
|
# These global volume definitions are used by the steps above.
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_sock # Refers to the docker_sock volume used in steps
|
- name: docker_sock # Refers to the docker_sock volume used in steps
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock # Actual path on your host for the Docker socket
|
path: /var/run/docker.sock # Actual path on your host for the Docker socket
|
||||||
- name: docker_compose_dir # Refers to the docker_compose_dir volume used in steps
|
- name: docker_compose_dir # Refers to the docker_compose_dir volume used in steps
|
||||||
path: /app
|
|
||||||
host:
|
host:
|
||||||
path: /home/gary/Discord/Acrybot # Your actual path on the host for docker-compose.yml
|
path: /home/gary/Discord/Acrybot # Your actual path on the host for docker-compose.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user