From 57b0ae23c20b8e64498ca3bfff900418709acd6d Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 6 Nov 2022 13:10:00 +0100 Subject: [PATCH] Remove "default_tags" as it's too similar to "default_tag" (#38) Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/38 Reviewed-by: Lauris BH Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de> --- cmd/docker-buildx/config.go | 2 +- docs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/docker-buildx/config.go b/cmd/docker-buildx/config.go index 562293c..b6e7ff3 100644 --- a/cmd/docker-buildx/config.go +++ b/cmd/docker-buildx/config.go @@ -123,7 +123,7 @@ func settingsFlags(settings *plugin.Settings) []cli.Flag { }, &cli.BoolFlag{ Name: "tags.auto", - EnvVars: []string{"PLUGIN_DEFAULT_TAGS", "PLUGIN_AUTO_TAG"}, + EnvVars: []string{"PLUGIN_AUTO_TAG"}, Usage: "generates tag names automatically based on git branch and git tag", Destination: &settings.Build.TagsAuto, }, diff --git a/docs.md b/docs.md index 7bc68f9..5644519 100644 --- a/docs.md +++ b/docs.md @@ -97,7 +97,7 @@ It will automatically generate buildkit configuration to use custom CA certifica | `daemon_off` | `false` | disables the startup of the docker daemon | `buildkit_config` | *none* | sets content of the docker [buildkit TOML config](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) | `context` | `.` | sets the path of the build context to use -| `default_tags`/`auto_tag` | `false` | generates tag names automatically based on git branch and git tag, tags supplied via `tags` are additionally added to the auto_tags without suffix +| `auto_tag` | `false` | generates tag names automatically based on git branch and git tag, tags supplied via `tags` are additionally added to the auto_tags without suffix | `default_suffix"`/`auto_tag_suffix`| *none* | generates tag names with the given suffix | `default_tag` | `latest` | overrides the default tag name used when generating with `auto_tag` enabled | `label`/`labels` | *none* | sets labels to use for the image in format `=`