-
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
Drop support for MySQL 5.7 #84
Changes from 5 commits
484e5a9
66f3314
871e6b7
9b3e9f5
3f2f952
a768883
622f1c1
b031a6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,39 +18,31 @@ jobs: | |
matrix: | ||
id: | ||
- "mysql-8.0" | ||
- "mysql-5.7" | ||
steps: | ||
- name: Parse ID | ||
id: parse | ||
run: | | ||
set -x | ||
|
||
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 | ||
if [ "${GITHUB_REF_TYPE}" = "tag" ] -a [[ "${GITHUB_REF_NAME}" =~ ^${{ matrix.id }}\. ]]; then | ||
version="${GITHUB_REF_NAME}" | ||
if [ "${GITHUB_EVENT_NAME}" = "push" ]; then | ||
push=true | ||
;; | ||
esac | ||
fi | ||
else | ||
version=${{ matrix.id }}-latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. タグじゃない |
||
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' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
This file was deleted.
This file was deleted.
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.
これは維持して欲しい。
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.
これをがんばらない方がいいのかな。
たぶん、タグとpushしたコミットの両方でpushするとエラーになるからこうしているんだと思うんだけど、それを無視すればいいっちゃいいんだよね。気持ち悪いけど。