From 186b87cf88f0a89a9f0ad9e60e404df3df11213a Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Fri, 9 Dec 2022 10:53:49 +0000 Subject: [PATCH] Fix auto tag generating tags with wrong suffix (#48) currently `auto_tag` would generate tags like: `1-latest`, `1.0-latest` etc Co-authored-by: Lauris BH Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/48 Reviewed-by: anbraten --- plugin/impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/impl.go b/plugin/impl.go index 30fb0e8..9008bc2 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -131,8 +131,8 @@ func (p *Plugin) Validate() error { ) { tag, err := DefaultTagSuffix( p.settings.Build.Ref, - p.settings.Build.TagsSuffix, p.settings.Build.TagsDefaultName, + p.settings.Build.TagsSuffix, ) if err != nil { logrus.Printf("cannot build docker image for %s, invalid semantic version", p.settings.Build.Ref)