woodpecker/docs/docs/20-usage/51-plugins/10-plugins.md

36 lines
825 B
Markdown
Raw Normal View History

2019-11-15 11:03:15 +00:00
# Plugins
Plugins are pipeline steps that perform pre-defined tasks and are configured as steps in your pipeline. Plugins can be used to deploy code, publish artifacts, send notification, and more.
They are automatically pulled from [plugins.drone.io](http://plugins.drone.io).
2019-11-15 11:03:15 +00:00
Example pipeline using the Docker and Slack plugins:
```yaml
pipeline:
build:
image: golang
commands:
- go build
- go test
publish:
image: plugins/docker
settings:
repo: foo/bar
tags: latest
2019-11-15 11:03:15 +00:00
notify:
image: plugins/slack
settings:
channel: dev
2019-11-15 11:03:15 +00:00
```
## Plugin Isolation
Plugins are just pipeline steps. They share the build workspace, mounted as a volume, and therefore have access to your source tree.
2019-11-15 11:03:15 +00:00
## Creating a plugin
2022-08-31 23:52:52 +00:00
See a [detailed plugin example](./20-sample-plugin.md).