Skip to content

Commit fd88644

Browse files
committed
ci: support build mysql8 images.
1 parent 58d822a commit fd88644

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/build_sidecar_image.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
version: [mysql57, mysql80]
2023
steps:
2124
- name: Set up QEMU
2225
uses: docker/setup-qemu-action@v1
@@ -30,10 +33,19 @@ jobs:
3033
username: ${{ secrets.DOCKERHUB_USERNAME }}
3134
password: ${{ secrets.DOCKERHUB_TOKEN }}
3235

33-
- name: Build and push
34-
id: docker_build
36+
- name: Build and push mysql57 sidecar
3537
uses: docker/build-push-action@v2
38+
if: ${{ matrix.version }} == mysql57
3639
with:
3740
push: true
3841
file: Dockerfile.sidecar
39-
tags: radondb/mysql-sidecar:${{ inputs.image_tag }}
42+
tags: radondb/${{ matrix.version }}-sidecar:${{ inputs.image_tag }}
43+
44+
- name: Build and push mysql80 sidecar
45+
uses: docker/build-push-action@v2
46+
if: ${{ matrix.version }} == mysql80
47+
with:
48+
push: true
49+
file: Dockerfile.sidecar
50+
tags: radondb/${{ matrix.version }}-sidecar:${{ inputs.image_tag }}
51+
build-args: --build-arg XTRABACKUP_PKG=percona-xtrabackup-80

0 commit comments

Comments
 (0)