From 581f08b54b0a69ef800e5cfae74fa29e9c4cb4e5 Mon Sep 17 00:00:00 2001 From: Laszlo Fogas Date: Tue, 19 May 2020 14:33:27 +0200 Subject: [PATCH] Full example --- docs/docs/environment-variables.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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.