fix: remove unimplemented squash option (#52)

This commit is contained in:
Robert Kaussow 2021-09-07 21:34:47 +02:00 committed by GitHub
parent 708587693c
commit 276f215b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 15 deletions

View File

@ -163,12 +163,6 @@ func settingsFlags(settings *plugin.Settings) []cli.Flag {
EnvVars: []string{"PLUGIN_CACHE_FROM"},
Destination: &settings.Build.CacheFrom,
},
&cli.BoolFlag{
Name: "squash",
Usage: "squash the layers at build time",
EnvVars: []string{"PLUGIN_SQUASH"},
Destination: &settings.Build.Squash,
},
&cli.BoolFlag{
Name: "pull-image",
Usage: "force pull base image at build time",

View File

@ -87,9 +87,6 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
if !dryrun {
args = append(args, "--push")
}
if build.Squash {
args = append(args, "--squash")
}
if build.Compress {
args = append(args, "--compress")
}

View File

@ -52,7 +52,6 @@ type Build struct {
Args cli.StringSlice // Docker build args
ArgsEnv cli.StringSlice // Docker build args from env
Target string // Docker build target
Squash bool // Docker build squash
Pull bool // Docker build pull
CacheFrom cli.StringSlice // Docker build cache-from
Compress bool // Docker build compress
@ -155,11 +154,6 @@ func (p *Plugin) Execute() error {
fmt.Println("Registry credentials or Docker config not provided. Guest mode enabled.")
}
if p.settings.Build.Squash && !p.settings.Daemon.Experimental {
fmt.Println("Squash build flag is only available when Docker deamon is started with experimental flag. Ignoring...")
p.settings.Build.Squash = false
}
// add proxy build args
addProxyBuildArgs(&p.settings.Build)