diff --git a/docs/docs/environment-variables.md b/docs/docs/environment-variables.md index dbb14e886..aee4ad5f4 100644 --- a/docs/docs/environment-variables.md +++ b/docs/docs/environment-variables.md @@ -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.