-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (35 loc) · 977 Bytes
/
.github-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Docker Image CI
on:
push:
branches:
- main
jobs:
docker-build-release:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { mysql: 8.2}
- { mysql: 8.1}
- { mysql: 8.0}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_REGISTRY_TOKEN }}
- name: Builds and pushes Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKER_IMAGE }}:${{ matrix.mysql }}
cache-from: type=gha
cache-to: type=gha,mode=max