mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-21 07:56:31 +00:00
Full example
This commit is contained in:
parent
73481dfa0c
commit
581f08b54b
1 changed files with 16 additions and 0 deletions
|
@ -100,6 +100,22 @@ If you want specific environment variables to be available in all of your builds
|
|||
DRONE_ENVIRONMENT=first_var:value1,second_var:value2
|
||||
```
|
||||
|
||||
```.diff
|
||||
services:
|
||||
woodpecker-server:
|
||||
image: laszlocloud/woodpecker-server:v0.9.0
|
||||
environment:
|
||||
- DRONE_OPEN=true
|
||||
- DRONE_ORGS=dolores,dogpatch
|
||||
- DRONE_ADMIN=johnsmith,janedoe
|
||||
- DRONE_HOST=${DRONE_HOST}
|
||||
- DRONE_GITHUB=true
|
||||
- DRONE_GITHUB_CLIENT=${DRONE_GITHUB_CLIENT}
|
||||
- DRONE_GITHUB_SECRET=${DRONE_GITHUB_SECRET}
|
||||
- DRONE_SECRET=${DRONE_SECRET}
|
||||
+ - DRONE_ENVIRONMENT=first_var:value1,second_var:value2
|
||||
```
|
||||
|
||||
## String Substitution
|
||||
|
||||
Woodpecker provides the ability to substitute environment variables at runtime. This gives us the ability to use dynamic build or commit details in our pipeline configuration.
|
||||
|
|
Loading…
Reference in a new issue