Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions content/cli/build/drone-build-promote.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,21 @@ OPTIONS:
--param value, -p value custom parameters to be injected into the job environment.
```

Example usage, promotes a build by build number:
Example usage promotes in the pipeline:

```
$ drone build promote octocat/hello-world 42 production
kind: pipeline
name: default

steps:
- name: test
image: node
environment:
foo: ${foo}
baz: ${baz}
commands:
- npm install
- npm test
```

Example usage, with custom parameters:
Expand All @@ -32,4 +43,4 @@ Example usage, with custom parameters:
$ drone build promote octocat/hello-world 42 production \
--param=foo=bar \
--param=baz=qux \
```
```