Full example

This commit is contained in:
Laszlo Fogas 2020-05-19 14:33:27 +02:00
parent 73481dfa0c
commit 581f08b54b

View file

@ -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.