woodpecker/docs/build/index.md

42 lines
704 B
Markdown
Raw Normal View History

2015-07-08 01:08:43 +00:00
# Overview
In order to configure your build, you must include a `.drone.yml` file in the root of your repository. This section provides a brief overview of the `.drone.yml` configuration file format.
2015-07-08 01:08:43 +00:00
2015-07-08 07:06:19 +00:00
Example `.drone.yml` for a Go repository:
2015-07-08 01:08:43 +00:00
```yaml
build:
image: golang
commands:
- go get
- go build
- go test
```
A more comprehensive example with linked service containers, deployment plugins and notification plugins:
```yaml
build:
image: golang
commands:
- go get
- go build
- go test
compose:
cache:
image: redis
database:
image: mysql
deploy:
heroku:
app: pied_piper
when:
branch: master
notify:
slack:
channel: myteam
```