From 9430d0e6a5175619b8520ae17f6b135f6ba850a4 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 8 Sep 2025 18:19:42 -0400 Subject: [PATCH] fix(cmd/containerbuild): support commas in --docker-tags (#1099) Signed-off-by: Xe Iaso --- cmd/containerbuild/main.go | 5 +++++ docs/docs/CHANGELOG.md | 1 + 2 files changed, 6 insertions(+) diff --git a/cmd/containerbuild/main.go b/cmd/containerbuild/main.go index 3cd7514..ce1995d 100644 --- a/cmd/containerbuild/main.go +++ b/cmd/containerbuild/main.go @@ -46,6 +46,11 @@ func main() { ) } + if strings.Contains(*dockerTags, ",") { + newTags := strings.Join(strings.Split(*dockerTags, ","), "\n") + dockerTags = &newTags + } + setOutput("docker_image", strings.SplitN(*dockerTags, "\n", 2)[0]) version, err := run("git describe --tags --always --dirty") diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 88e2693..37a7874 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add validation warning when persistent storage is used without setting signing keys - Fixed `robots2policy` to properly group consecutive user agents into `any:` instead of only processing the last one ([#925](https://github.com/TecharoHQ/anubis/pull/925)) - Add the [`s3api` storage backend](./admin/policies.mdx#s3api) to allow Anubis to use S3 API compatible object storage as its storage backend. +- Make `cmd/containerbuild` support commas for separating elements of the `--docker-tags` argument as well as newlines. ### Bug Fixes