Skip to content

Commit 9430d0e

Browse files
authored
fix(cmd/containerbuild): support commas in --docker-tags (#1099)
Signed-off-by: Xe Iaso <[email protected]>
1 parent 8b9dafa commit 9430d0e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cmd/containerbuild/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ func main() {
4646
)
4747
}
4848

49+
if strings.Contains(*dockerTags, ",") {
50+
newTags := strings.Join(strings.Split(*dockerTags, ","), "\n")
51+
dockerTags = &newTags
52+
}
53+
4954
setOutput("docker_image", strings.SplitN(*dockerTags, "\n", 2)[0])
5055

5156
version, err := run("git describe --tags --always --dirty")

docs/docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Add validation warning when persistent storage is used without setting signing keys
1818
- 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))
1919
- Add the [`s3api` storage backend](./admin/policies.mdx#s3api) to allow Anubis to use S3 API compatible object storage as its storage backend.
20+
- Make `cmd/containerbuild` support commas for separating elements of the `--docker-tags` argument as well as newlines.
2021

2122
### Bug Fixes
2223

0 commit comments

Comments
 (0)