mirror of
https://github.com/harness/drone.git
synced 2025-05-19 02:20:03 +08:00
Update sample YAML in README [ci skip]
This commit is contained in:
parent
f2db48597e
commit
d221ed0b88
15
.github/readme.md
vendored
15
.github/readme.md
vendored
@ -7,28 +7,33 @@ Drone is a Continuous Delivery system built on container technology. Drone uses
|
|||||||
Sample Pipeline Configuration:
|
Sample Pipeline Configuration:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
pipeline:
|
kind: pipeline
|
||||||
backend:
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: backend
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build
|
- go build
|
||||||
- go test
|
- go test
|
||||||
|
|
||||||
frontend:
|
- name: frontend
|
||||||
image: node:6
|
image: node:6
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm test
|
- npm test
|
||||||
|
|
||||||
publish:
|
- name: publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
repo: octocat/hello-world
|
repo: octocat/hello-world
|
||||||
tags: [ 1, 1.1, latest ]
|
tags: [ 1, 1.1, latest ]
|
||||||
registry: index.docker.io
|
registry: index.docker.io
|
||||||
|
|
||||||
notify:
|
- name: notify
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
|
settings:
|
||||||
channel: developers
|
channel: developers
|
||||||
username: drone
|
username: drone
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user