1717 - " mysql-8.4"
1818 steps :
1919 - name : Parse ID
20- id : parse
2120 run : |
2221 set -x
2322 if [ "${GITHUB_REF_TYPE}" = "tag" ] && [[ "${GITHUB_REF_NAME}" =~ ^${{ matrix.id }}\. ]]; then
@@ -39,12 +38,12 @@ jobs:
3938 if [ "${version}" = "mysql-8.0-latest" ]; then
4039 tags="${tags},groonga/mroonga:latest"
4140 fi
42- echo "::set-output name=push:: ${push}"
43- echo "::set-output name=tag:: ${tag}"
44- echo "::set-output name=tags:: ${tags}"
41+ echo "PUSH= ${push}" >> ${GITHUB_ENV}
42+ echo "TAG= ${tag}" >> ${GITHUB_ENV}
43+ echo "TAGS= ${tags}" >> ${GITHUB_ENV}
4544 - uses : actions/checkout@v4
4645 - uses : docker/login-action@v3
47- if : steps.parse.outputs.push == 'true'
46+ if : env.PUSH == 'true'
4847 with :
4948 username : ${{ secrets.DOCKER_HUB_USERNAME }}
5049 password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
5655 # cache-from: type=gha
5756 # cache-to: type=gha,mode=max
5857 context : ${{ matrix.id }}
59- push : ${{ steps.parse.outputs.push }}
60- load : ${{ steps.parse.outputs.push != 'true' }}
61- tags : ${{ steps.parse.outputs.tags }}
58+ push : ${{ env.PUSH }}
59+ load : ${{ env.PUSH != 'true' }}
60+ tags : ${{ env.TAGS }}
6261 - name : Image info
6362 run : |
6463 dockerfile=${{ matrix.id }}/Dockerfile
7473 echo "MySQL ${mysql_version}, Mroonga ${mroonga_version}, Groonga ${groonga_version}" | tee release-title.txt
7574 cat <<RELEASE_NOTE | tee release-note.md
7675 * Commit: https://github.com/${GITHUB_REPOSITORY}/tree/${GITHUB_REF_NAME}
77- * Tags: ${{ steps.parse.outputs.tags } }
76+ * Tags: ${TAGS }
7877 * Digest: \`${{ steps.docker_build.outputs.digest }}\`
7978 RELEASE_NOTE
8079 - name : Create GitHub Release
9089 run : |
9190 ./test.sh \
9291 "${{ matrix.id }}" \
93- "${{ steps.parse.outputs.tag } }"
92+ "${TAG }"
0 commit comments