20 lines
884 B
YAML
20 lines
884 B
YAML
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 # This pipeline will run when changes are pushed to the 'main' branch.
|
|
event:
|
|
- push # Trigger on push events.
|
|
|
|
steps:
|
|
- name: hello-world # Name of this single step.
|
|
image: alpine/git # A small, common Docker image that includes basic utilities.
|
|
commands:
|
|
- 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)
|