Update .woodpecker.yml
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-08-13 20:03:14 +10:00
parent d40308e1a4
commit 028cab2de8

View File

@@ -1,35 +1,19 @@
kind: pipeline kind: pipeline # Defines this as a Woodpecker CI pipeline.
type: docker type: docker # Specifies that this pipeline will execute commands using Docker.
name: restart-discord-bot name: basic-test-pipeline # A simple name for this test pipeline.
# Defines when this pipeline should be triggered.
trigger: trigger:
branch: branch:
- main - main # This pipeline will run when changes are pushed to the 'main' branch.
event: event:
- push - push # Trigger on push events.
steps: steps:
- name: test-compose-access - name: hello-world # Name of this single step.
image: docker/compose:latest image: alpine/git # A small, common Docker image that includes basic utilities.
volumes:
- name: docker_sock
path: /var/run/docker.sock
- name: docker_compose_dir
path: /app
commands: commands:
- ls -la /app # List contents of the mounted directory - echo "Hello from Woodpecker CI!" # A simple command to print a message.
- docker --version # Check if Docker CLI is available - echo "Pipeline triggered successfully."
- docker compose version # Check Docker Compose version - pwd # Print the current working directory (usually /woodpecker/src/<repo_owner>/<repo_name>)
- cd /app - ls -la # List files in the current directory (you should see your .woodpecker.yml here)
- pwd # Print current working directory
- ls # List files in the current directory (should see docker-compose.yml)
# Temporarily comment out the restart command until previous ones succeed
# - docker compose restart your_bot_service_name
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
- name: docker_compose_dir
host:
path: /home/gary/Discord/Acrybot # Updated path to your Docker Compose directory