-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use image hosted on ghcr.io #542
Conversation
c7bc4bc
to
6c312b9
Compare
d66d828
to
94e671f
Compare
if [ "${#array[@]}" -eq 0 ]; then | ||
json_output="[]" | ||
else | ||
json_output=$(printf '%s\n' "${array[@]}" | jq -R . | jq -s . | jq -c .) | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We seems to write it more easily.
echo "${array[@]}" | jq -Rc 'split(" ")'
$ array=()
$ array+=( "hoge" )
$ array+=( "piyo" )
$ array+=( "fuga" )
$ echo "${array[@]}"
hoge piyo fuga
$ echo "${array[@]}" | jq -Rc 'split(" ")'
["hoge","piyo","fuga"]
$ array2=()
$ echo "${array2[@]}"
$ echo "${array2[@]}" | jq -Rc 'split(" ")'
[]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🙏 Simplicity now!
41ae011
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
dfb21f5
to
2837164
Compare
I rebased this PR because it conflicted with #548. |
Use image hosted on
ghcr.io
.We also use a local mysql image to run E2E tests after building the MySQL image.
This allows more detailed testing of the built mysql image.