From fc60a79bc377194725ba863d69b1b6b2bb3dc0f9 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 9 Feb 2024 15:34:45 +0100 Subject: [PATCH] rename mount with secret --- cmd/docker-buildx/config.go | 6 +++--- docs.md | 2 +- plugin/impl.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/docker-buildx/config.go b/cmd/docker-buildx/config.go index a8d13b2..ebcb719 100644 --- a/cmd/docker-buildx/config.go +++ b/cmd/docker-buildx/config.go @@ -185,9 +185,9 @@ func settingsFlags(settings *plugin.Settings) []cli.Flag { }, &cli.StringSliceFlag{ Name: "mount", - EnvVars: []string{"PLUGIN_MOUNT"}, - Usage: "sets custom mount argument for the build", - Destination: &settings.Build.Mount, + EnvVars: []string{"PLUGIN_SECRET"}, + Usage: "sets custom secret argument for the build", + Destination: &settings.Build.Secret, }, &cli.BoolFlag{ Name: "quiet", diff --git a/docs.md b/docs.md index e68ec32..ea8b7fa 100644 --- a/docs.md +++ b/docs.md @@ -118,7 +118,7 @@ docker-build: | `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_from_env` | _none_ | forwards environment variables as custom arguments to the build | -| `mount` | _none_ | Sets the build mount to user | +| `secret` | _none_ | Sets the build secret for the build | | `quiet` | `false` | enables suppression of the build output | | `target` | _none_ | sets the build target to use | | `cache_from` | _none_ | sets configuration for cache source | diff --git a/plugin/impl.go b/plugin/impl.go index a0f8902..5d77abf 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -70,7 +70,7 @@ type Build struct { Args cli.StringSlice // Docker build args ArgsEnv cli.StringSlice // Docker build args from env Mount string // Docker build mount - Target string // Docker build target + Secret string // Docker build secret Output string // Docker build output Pull bool // Docker build pull CacheFrom string // Docker build cache-from