-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
The handling of multi-line strings for build-labels
is incorrect.
Input:
# BUILDKITE_MESSAGE="foo\nbar"
build-labels:
- "commit.message=${BUILDKITE_MESSAGE}"
Expected:
$ docker inspect my-image | jq .[0].Config.Labels
{
"commit.message": "foo\nbar"
}
Actual:
{
"commit.message": "foo",
"bar": ""
}
This is probably due to the read
here:
docker-compose-buildkite-plugin/commands/build.sh
Lines 71 to 74 in 4ac4d6d
labels=() | |
while read -r label ; do | |
[[ -n "${label:-}" ]] && labels+=("${label}") | |
done <<< "$(plugin_read_list BUILD_LABELS)" |
Metadata
Metadata
Assignees
Labels
No labels