From 028cab2de871fa145fdb4bd963c19e8a6ad0c363 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 13 Aug 2025 20:03:14 +1000 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 40 ++++++++++++---------------------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e80d5f2..68641df 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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//) + - ls -la # List files in the current directory (you should see your .woodpecker.yml here)