Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Docker Image MariaDB #494

Docker Image MariaDB

Docker Image MariaDB #494

name: Docker Image MariaDB
on:
schedule:
- cron: "0 6 * * *" # 6 AM Daily
push:
paths:
- images/.trigger
- images/mariadb/**
- .github/workflows/*mariadb*
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"
include:
- version: "11.0"
modifier: "-rc"
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Login to Github Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ !env.ACT }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ !env.ACT }}
- uses: docker/build-push-action@v3
with:
context: images/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 }}/den-mariadb:${{ matrix.version }}${{ matrix.modifier }}