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