Compare commits

...

2 Commits

Author SHA1 Message Date
ed9d089383 Only build arm64
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-10-08 16:26:23 +02:00
bd3ca935de Add docs to the new build args
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-10-08 16:06:59 +02:00
2 changed files with 22 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ variables:
- &golang 'golang:1.20' - &golang 'golang:1.20'
- &build_plugin 'woodpeckerci/plugin-docker-buildx:2' - &build_plugin 'woodpeckerci/plugin-docker-buildx:2'
- base_settings: &base_buildx_settings - base_settings: &base_buildx_settings
platforms: 'linux/amd64,linux/arm64' platforms: 'linux/arm64'
dockerfile: Dockerfile.multiarch dockerfile: Dockerfile.multiarch
auto_tag: true auto_tag: true
repo: git.polynom.me/papatutuwawa/docker-buildx repo: git.polynom.me/papatutuwawa/docker-buildx

22
docs.md
View File

@@ -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 | `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 `<name>=<value>` | `label`/`labels` | *none* | sets labels to use for the image in format `<name>=<value>`
| `default_labels`/`auto_labels` | `true` | sets docker image labels based on git information | `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 | `build_args_from_env` | *none* | forwards environment variables as custom arguments to the build
| `quiet` | `false` | enables suppression of the build output | `quiet` | `false` | enables suppression of the build output
| `target` | *none* | sets the build target to use | `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 | `logins` | *none* | option to log into multiple registries
| `env_file` | *none* | load env vars from specified file | `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 ## Multi registry push example
Only supported with `woodpecker >= 1.0.0` (next-da997fa3). Only supported with `woodpecker >= 1.0.0` (next-da997fa3).