-
-
Notifications
You must be signed in to change notification settings - Fork 18
66 lines (60 loc) · 1.68 KB
/
mariadb.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Docker Image MariaDB
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *" # 6 AM Daily
push:
paths:
- mariadb/**
- .github/workflows/mariadb.yml
jobs:
mariadb:
name: MariaDB
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- "10.0"
- "10.1"
- "10.2"
- "10.3"
- "10.4"
- "10.5"
- "10.6"
- "10.7"
- "10.8"
- "10.9"
- "10.10"
- "10.11"
- "11.0"
- "11.1"
- "11.2"
- "11.3"
- "11.4"
- "11.5"
- "11.6-rc"
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ !env.ACT }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ !env.ACT }}
- uses: docker/build-push-action@v6
with:
context: mariadb
platforms: linux/amd64,linux/arm64
build-args: MARIADB_VERSION=${{ matrix.version }}${{ matrix.modifier }}
push: ${{ github.ref == 'refs/heads/main' && !env.ACT }}
tags: ghcr.io/${{ github.repository_owner }}/mariadb:${{ matrix.version }}${{ matrix.modifier }},wardenenv/mariadb:${{matrix.version}}${{matrix.modifier}}