From b302ea6f8ca7856073d55707909bf7c9d5e1ea5a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 1 Nov 2022 14:04:49 +0100 Subject: [PATCH] chore: remove unused purge parameter (#147) --- _docs/data/data.yaml | 6 ------ cmd/drone-docker-buildx/config.go | 8 -------- plugin/impl.go | 9 ++++----- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/_docs/data/data.yaml b/_docs/data/data.yaml index 2735f9e..eba41ca 100644 --- a/_docs/data/data.yaml +++ b/_docs/data/data.yaml @@ -208,12 +208,6 @@ properties: type: string required: false - purge: - description: Enable cleanup of the docker environment at the end of a build. - defaultValue: true - type: bool - required: false - no_cache: description: Disable the usage of cached intermediate containers. defaultValue: false diff --git a/cmd/drone-docker-buildx/config.go b/cmd/drone-docker-buildx/config.go index 671cfc2..3bb8b49 100644 --- a/cmd/drone-docker-buildx/config.go +++ b/cmd/drone-docker-buildx/config.go @@ -276,14 +276,6 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag { Destination: &settings.Login.Config, Category: category, }, - &cli.BoolFlag{ - Name: "docker.purge", - EnvVars: []string{"PLUGIN_PURGE"}, - Usage: "enable cleanup of the docker environment at the end of a build", - Value: true, - Destination: &settings.Cleanup, - Category: category, - }, &cli.BoolFlag{ Name: "no-cache", EnvVars: []string{"PLUGIN_NO_CACHE"}, diff --git a/plugin/impl.go b/plugin/impl.go index 58cab52..3e39085 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -67,11 +67,10 @@ type Build struct { // Settings for the Plugin. type Settings struct { - Daemon Daemon - Login Login - Build Build - Dryrun bool - Cleanup bool + Daemon Daemon + Login Login + Build Build + Dryrun bool } // Validate handles the settings validation of the plugin.