From 69fad2c4697f8ae16560a3ab4c82fdbd8b0c2994 Mon Sep 17 00:00:00 2001 From: BigGamerGary Date: Wed, 13 Aug 2025 20:33:44 +1000 Subject: [PATCH] Gemini Test --- .woodpecker.yml | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 903f8d3..f33cddf 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,29 +1,38 @@ -kind: pipeline # Defines this as a Woodpecker CI pipeline. -type: docker -name: restart-discord-bot # A descriptive name for your pipeline. +kind: pipeline +type: docker # Essential for Docker execution -# Defines when this pipeline should be triggered. -when: - - event: push - branch: main +name: restart-discord-bot + +trigger: + branch: + - main + event: + - push steps: - - name: restart-bot # Name of the step that restarts your bot. - image: debian # Uses a Docker Compose-enabled image. + - name: restart-bot + image: docker/compose:latest # Image with Docker Compose volumes: + # Explicitly mounting docker_sock for this step's container + - name: docker_sock + path: /var/run/docker.sock + # Mounting the docker-compose.yml directory - name: docker_compose_dir - path: /app + path: /app # Mount point inside the container 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. + # Execute the Docker Compose command + # IMPORTANT: Replace 'your_bot_service_name' with your actual service name. + - docker compose restart your_bot_service_name + # Uncomment the line below if you use older Docker Compose (with a hyphen) + # - docker-compose restart your_bot_service_name -# Defines the volumes that are available to the steps in this pipeline. +# Define the host paths for the named volumes. +# These global volume definitions are used by the steps above. volumes: - - name: docker_compose_dir # A named volume for your Docker Compose project directory. + - name: docker_sock # Refers to the docker_sock volume used in steps host: - path: /home/gary/Discord/Acrybot # The actual absolute path on your host machine. + 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 + host: + path: /home/gary/Discord/Acrybot # Your actual path on the host for docker-compose.yml