From bd3ca935de3f6dc52be51f95ee075403093bf7e1 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 8 Oct 2023 16:06:59 +0200 Subject: [PATCH] Add docs to the new build args --- docs.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs.md b/docs.md index 3275862..522f5d7 100644 --- a/docs.md +++ b/docs.md @@ -109,7 +109,7 @@ If it's not a tag event, and no default branch, automated tags are skipped. | `default_tag` | `latest` | overrides the default tag name used when generating with `auto_tag` enabled | `label`/`labels` | *none* | sets labels to use for the image in format `=` | `default_labels`/`auto_labels` | `true` | sets docker image labels based on git information -| `build_args` | *none* | sets custom build arguments for the build +| `build_args` | *none* | sets custom build arguments for the build. Key-Value pairs | `build_args_from_env` | *none* | forwards environment variables as custom arguments to the build | `quiet` | `false` | enables suppression of the build output | `target` | *none* | sets the build target to use @@ -124,6 +124,26 @@ If it's not a tag event, and no default branch, automated tags are skipped. | `logins` | *none* | option to log into multiple registries | `env_file` | *none* | load env vars from specified file +## Build-Args example + +```yaml +settings: + repo: a6543/tmp,codeberg.org/6543/tmp + tag: demo + build_args: + value1: hallo + value2: welt + logins: + - registry: https://index.docker.io/v1/ + username: a6543 + password: + from_secret: docker_token + - registry: https://codeberg.org + username: "6543" + password: + from_secret: cb_token +``` + ## Multi registry push example Only supported with `woodpecker >= 1.0.0` (next-da997fa3).