Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit b302ea6

Browse files
authored
chore: remove unused purge parameter (#147)
1 parent 248b7a5 commit b302ea6

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

_docs/data/data.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,6 @@ properties:
208208
type: string
209209
required: false
210210

211-
purge:
212-
description: Enable cleanup of the docker environment at the end of a build.
213-
defaultValue: true
214-
type: bool
215-
required: false
216-
217211
no_cache:
218212
description: Disable the usage of cached intermediate containers.
219213
defaultValue: false

cmd/drone-docker-buildx/config.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,6 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag {
276276
Destination: &settings.Login.Config,
277277
Category: category,
278278
},
279-
&cli.BoolFlag{
280-
Name: "docker.purge",
281-
EnvVars: []string{"PLUGIN_PURGE"},
282-
Usage: "enable cleanup of the docker environment at the end of a build",
283-
Value: true,
284-
Destination: &settings.Cleanup,
285-
Category: category,
286-
},
287279
&cli.BoolFlag{
288280
Name: "no-cache",
289281
EnvVars: []string{"PLUGIN_NO_CACHE"},

plugin/impl.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ type Build struct {
6767

6868
// Settings for the Plugin.
6969
type Settings struct {
70-
Daemon Daemon
71-
Login Login
72-
Build Build
73-
Dryrun bool
74-
Cleanup bool
70+
Daemon Daemon
71+
Login Login
72+
Build Build
73+
Dryrun bool
7574
}
7675

7776
// Validate handles the settings validation of the plugin.

0 commit comments

Comments
 (0)