-
Notifications
You must be signed in to change notification settings - Fork 10
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
Get MySQL, Mroonga, and Groonga versions automatically in update.sh #98
Get MySQL, Mroonga, and Groonga versions automatically in update.sh #98
Conversation
Usage: ./update.sh
update.sh
Outdated
if [ $# != 3 ]; then | ||
echo "Usage: $0 MYSQL_VERSION MROONGA_VERSION GROONGA_VERSION" | ||
echo " e.g.: $0 8.0.30 12.06 12.0.6" | ||
if [ $# != 0 ]; then |
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.
引数を受け取らない場合は、ここのチェックはなくても良さそうかなと思いました。
mysql_version=$1 | ||
mroonga_version=$2 | ||
groonga_version=$3 | ||
target_mysqls=( |
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.
target_mysqls=( | |
target_mysql_versions=( |
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.
Sorry this is right. Please ignore my comment.
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.
Oh...
This reverts commit 71c467f.
update.sh
Outdated
8.0) | ||
mysql_version=$(curl https://raw.githubusercontent.com/docker-library/mysql/refs/heads/master/versions.json \ | ||
| jq -r '.["8.0"]["version"]') | ||
docker_file=mysql-8.0/Dockerfile |
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 might write this line outside the case block.
update.sh
Outdated
|
||
tag="mysql-${mysql_version}-${mroonga_version}" | ||
message="MySQL ${mysql_version} and Mroonga ${mroonga_version}" | ||
echo "${message}" |
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.
Is this debug command? If so, we could delete it.
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.
Could you update README.md too?
Co-authored-by: Sutou Kouhei <[email protected]>
I updated it. |
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 👍🏾
Usage:
./update.sh
The result of execution of
./update.sh
as below.