Merge branch 'feature/setting-mount' into feature/setting-mount-ci

This commit is contained in:
Simon Vieille 2024-02-09 15:34:51 +01:00
commit bf6bbafd3b
3 changed files with 5 additions and 5 deletions

View file

@ -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",

View file

@ -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 |

View file

@ -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