Skip to content

Commit

Permalink
Drop support for MySQL 5.7 (#84)
Browse files Browse the repository at this point in the history
We also tidied up the conditions for docker push with CI.
  • Loading branch information
abetomo authored Nov 13, 2024
1 parent 2c616fd commit d3e2924
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 87 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,34 @@ jobs:
matrix:
id:
- "mysql-8.0"
- "mysql-5.7"
steps:
- name: Parse ID
id: parse
run: |
set -x
if [ "${GITHUB_REF_TYPE}" = "tag" ] && [[ "${GITHUB_REF_NAME}" =~ ^${{ matrix.id }}\. ]]; then
version="${GITHUB_REF_NAME}"
else
version=${{ matrix.id }}-latest
fi
push=false
case "${{ github.ref }}" in
refs/tags/*)
version=$(echo "${{ github.ref }}" | sed -e "s,^refs/tags/,,g")
case "${version}" in
${{ matrix.id }}.*)
push=true
;;
*)
version=${{ matrix.id }}-latest
push=false
;;
esac
;;
*)
version=${{ matrix.id }}-latest
push=true
;;
esac
if [ "${GITHUB_EVENT_NAME}" = "push" ]; then
push=true
if [ "${GITHUB_REF_TYPE}" = "tag" ] && [ "${version}" != "${GITHUB_REF_NAME}" ]; then
push=false
fi
fi
tags="groonga/mroonga:${version}"
if [ "${version}" = "mysql-5.7-latest" ]; then
if [ "${version}" = "mysql-8.0-latest" ]; then
tags="${tags},groonga/mroonga:latest"
fi
echo "::set-output name=push::${push}"
echo "::set-output name=tags::${tags}"
- uses: actions/checkout@v4
- uses: docker/login-action@v3
if: steps.parse.outputs.push == 'true'
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
Expand Down
54 changes: 28 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,36 @@ If your /path/to/datadir doesn't have ibdata1, container decides to re-initializ
Currently, groonga/mroonga provides these couples of versions.
([tags](https://hub.docker.com/r/groonga/mroonga/tags/) cannot display all of them..)

### For MySQL 8.0

| tag | MySQL | Mroonga | Groonga |
|------------------------|--------|---------|---------|
| mysql-8.0-latest | 8.0.30 | 12.06 | 12.0.6 |
| mysql-8.0.30-12.06 | 8.0.30 | 12.06 | 12.0.6 |
| mysql-8.0.29-12.04 | 8.0.29 | 12.04 | 12.0.4 |
| mysql-8.0.29-12.03 | 8.0.29 | 12.03 | 12.0.3 |
| mysql-8.0.28-12.02 | 8.0.28 | 12.02 | 12.0.2 |
| mysql-8.0.28-12.00 | 8.0.28 | 12.00 | 12.0.0 |
| mysql-8.0.28-11.13 | 8.0.28 | 11.13 | 11.1.3 |
| mysql-8.0.27-11.13 | 8.0.27 | 11.13 | 11.1.3 |
| mysql-8.0.25-11.03 | 8.0.25 | 11.03 | 11.0.3 |
| mysql8025\_mroonga1103 | 8.0.25 | 11.03 | 11.0.3 |
| mysql8025\_mroonga1102 | 8.0.25 | 11.02 | 11.0.2 |
| mysql8023\_mroonga1101 | 8.0.23 | 11.01 | 11.0.1 |
| mysql8023\_mroonga1100 | 8.0.23 | 11.00 | 11.0.0 |
| mysql8023\_mroonga1011 | 8.0.23 | 10.11 | 10.1.1 |
| mysql8022\_mroonga1010 | 8.0.22 | 10.10 | 10.1.0 |
| mysql8019\_mroonga1001 | 8.0.19 | 10.01 | 10.0.1 |
| mysql8019\_mroonga912 | 8.0.18 | 9.12 | 9.1.2 |
| mysql8018\_mroonga909 | 8.0.18 | 9.09 | 9.0.9 |
| mysql8017\_mroonga907 | 8.0.17 | 9.07 | 9.0.7 |
| mysql8017\_mroonga905 | 8.0.17 | 9.05 | 9.0.5 |
| mysql8016\_mroonga904 | 8.0.16 | 9.04 | 9.0.4 |

### For MySQL 5.7

EOL

| tag | MySQL | Mroonga | Groonga |
|--------------------------|--------|---------|---------|
| mysql-5.7-latest, latest | 5.7.39 | 12.06 | 12.0.6 |
Expand Down Expand Up @@ -95,32 +123,6 @@ Currently, groonga/mroonga provides these couples of versions.
| mysql5710\_mroonga510 | 5.7.10 | 5.10 | 5.1.0 |
| mysql579\_mroonga509 | 5.7.9 | 5.09 | 5.0.9 |

### For MySQL 8.0

| tag | MySQL | Mroonga | Groonga |
|------------------------|--------|---------|---------|
| mysql-8.0-latest | 8.0.30 | 12.06 | 12.0.6 |
| mysql-8.0.30-12.06 | 8.0.30 | 12.06 | 12.0.6 |
| mysql-8.0.29-12.04 | 8.0.29 | 12.04 | 12.0.4 |
| mysql-8.0.29-12.03 | 8.0.29 | 12.03 | 12.0.3 |
| mysql-8.0.28-12.02 | 8.0.28 | 12.02 | 12.0.2 |
| mysql-8.0.28-12.00 | 8.0.28 | 12.00 | 12.0.0 |
| mysql-8.0.28-11.13 | 8.0.28 | 11.13 | 11.1.3 |
| mysql-8.0.27-11.13 | 8.0.27 | 11.13 | 11.1.3 |
| mysql-8.0.25-11.03 | 8.0.25 | 11.03 | 11.0.3 |
| mysql8025\_mroonga1103 | 8.0.25 | 11.03 | 11.0.3 |
| mysql8025\_mroonga1102 | 8.0.25 | 11.02 | 11.0.2 |
| mysql8023\_mroonga1101 | 8.0.23 | 11.01 | 11.0.1 |
| mysql8023\_mroonga1100 | 8.0.23 | 11.00 | 11.0.0 |
| mysql8023\_mroonga1011 | 8.0.23 | 10.11 | 10.1.1 |
| mysql8022\_mroonga1010 | 8.0.22 | 10.10 | 10.1.0 |
| mysql8019\_mroonga1001 | 8.0.19 | 10.01 | 10.0.1 |
| mysql8019\_mroonga912 | 8.0.18 | 9.12 | 9.1.2 |
| mysql8018\_mroonga909 | 8.0.18 | 9.09 | 9.0.9 |
| mysql8017\_mroonga907 | 8.0.17 | 9.07 | 9.0.7 |
| mysql8017\_mroonga905 | 8.0.17 | 9.05 | 9.0.5 |
| mysql8016\_mroonga904 | 8.0.16 | 9.04 | 9.0.4 |

### For MySQL 5.6

EOL
Expand Down
34 changes: 0 additions & 34 deletions mysql-5.7/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions mysql-5.7/mysqld.cnf

This file was deleted.

2 changes: 1 addition & 1 deletion test/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu

if [ $# != 1 ]; then
echo "Usage: $0 CONTEXT"
echo " e.g.: $0 mysql-5.7"
echo " e.g.: $0 mysql-8.0"
exit 1
fi

Expand Down
5 changes: 1 addition & 4 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu

if [ $# != 3 ]; then
echo "Usage: $0 MYSQL_VERSION MROONGA_VERSION GROONGA_VERSION"
echo " e.g.: $0 5.7.26 9.01 9.0.2"
echo " e.g.: $0 8.0.30 12.06 12.0.6"
exit 1
fi

Expand All @@ -19,9 +19,6 @@ else
fi

case $mysql_version in
5.7.*)
docker_file=mysql-5.7/Dockerfile
;;
8.0.*)
docker_file=mysql-8.0/Dockerfile
;;
Expand Down

0 comments on commit d3e2924

Please sign in to comment.