append tags with autotag instead of replacing

closes #201
This commit is contained in:
Stefan Schwarz 2019-07-24 11:12:22 +02:00
parent ebce953fc4
commit db96c9a78b

View File

@ -280,10 +280,10 @@ func run(c *cli.Context) error {
c.String("commit.ref"),
c.String("repo.branch"),
) {
plugin.Build.Tags = docker.DefaultTagSuffix(
plugin.Build.Tags = append(plugin.Build.Tags, docker.DefaultTagSuffix(
c.String("commit.ref"),
c.String("tags.suffix"),
)
)...)
} else {
logrus.Printf("skipping automated docker build for %s", c.String("commit.ref"))
return nil