Compare commits

...

4 commits

Author SHA1 Message Date
Simon Vieille cdf6844ce8 Merge branch 'feature/setting-mount' into feature/setting-mount-ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-02-09 15:37:11 +01:00
Simon Vieille edc13f23fc
fix bad substitution 2024-02-09 15:37:03 +01:00
Simon Vieille bf6bbafd3b Merge branch 'feature/setting-mount' into feature/setting-mount-ci 2024-02-09 15:34:51 +01:00
Simon Vieille fc60a79bc3
rename mount with secret 2024-02-09 15:34:45 +01:00
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

@ -69,7 +69,7 @@ type Build struct {
Platforms cli.StringSlice // Docker build target platforms
Args cli.StringSlice // Docker build args
ArgsEnv cli.StringSlice // Docker build args from env
Mount string // Docker build mount
Secret string // Docker build secret
Target string // Docker build target
Output string // Docker build output
Pull bool // Docker build pull