Skip to content
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

Merged
merged 6 commits into from
Aug 3, 2023
Merged

Use image hosted on ghcr.io #542

merged 6 commits into from
Aug 3, 2023

Conversation

d-kuro
Copy link
Contributor

@d-kuro d-kuro commented Jul 22, 2023

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.

@d-kuro d-kuro force-pushed the d-kuro/ghcrio-image branch 7 times, most recently from c7bc4bc to 6c312b9 Compare July 22, 2023 12:58
@d-kuro d-kuro self-assigned this Jul 22, 2023
@d-kuro d-kuro force-pushed the d-kuro/ghcrio-image branch 6 times, most recently from d66d828 to 94e671f Compare July 26, 2023 05:16
@d-kuro d-kuro changed the title ghcr.io images Use image hosted on ghcr.io Jul 26, 2023
@d-kuro d-kuro requested a review from masa213f July 26, 2023 05:25
@d-kuro d-kuro marked this pull request as ready for review July 26, 2023 05:25
Comment on lines 39 to 43
if [ "${#array[@]}" -eq 0 ]; then
json_output="[]"
else
json_output=$(printf '%s\n' "${array[@]}" | jq -R . | jq -s . | jq -c .)
fi
Copy link
Contributor

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(" ")'
[]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏 Simplicity now!
41ae011

.github/workflows/build-mysql-container.yaml Show resolved Hide resolved
.github/workflows/build-mysql-container.yaml Outdated Show resolved Hide resolved
masa213f
masa213f previously approved these changes Aug 2, 2023
Copy link
Contributor

@masa213f masa213f left a 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>
@masa213f
Copy link
Contributor

masa213f commented Aug 2, 2023

I rebased this PR because it conflicted with #548.

@masa213f masa213f merged commit b63186f into main Aug 3, 2023
17 checks passed
@masa213f masa213f deleted the d-kuro/ghcrio-image branch August 3, 2023 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants