Fettling.
This commit is contained in:
parent
a8cae1652d
commit
c842814b51
1 changed files with 39 additions and 17 deletions
56
.github/workflows/build.yml
vendored
56
.github/workflows/build.yml
vendored
|
@ -18,32 +18,54 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Build MariaDB"
|
||||
runs-on: ubuntu-20.04
|
||||
mariadb-build:
|
||||
name: "Build"
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
version:
|
||||
- latest
|
||||
- 11
|
||||
- 11.2
|
||||
- 11.1
|
||||
- 11.0
|
||||
- 10
|
||||
- 10.11
|
||||
- "10.10"
|
||||
- 10.6
|
||||
- 10.5
|
||||
- 10.4
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: docker/setup-qemu-action@v1
|
||||
name: Setup QEmu
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
name: Setup Docker Buildx
|
||||
- uses: docker/login-action@v1
|
||||
name: Login to Docker Hub
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: docker/setup-qemu-action@v3
|
||||
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: "Setup: Login to Docker Hub"
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
- uses: docker/login-action@v1
|
||||
name: Login to Github Container Registry
|
||||
|
||||
- name: "Setup: Login to GHCR"
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: docker/build-push-action@v2
|
||||
|
||||
- uses: docker/build-push-action@v5
|
||||
name: Build & Push
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
context: mariadb
|
||||
platforms: ${{ env.ACT && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
|
||||
pull: true
|
||||
push: true
|
||||
tags: |
|
||||
benzine/mariadb
|
||||
ghcr.io/benzine-framework/docker-mariadb
|
||||
benzine/mariadb:${{ matrix.version }}
|
||||
ghcr.io/benzine-framework/mariadb:${{ matrix.version }}
|
||||
build-contexts: |
|
||||
mariadb:injected-version=docker-image://mariadb:${{ matrix.version }}
|
||||
|
|
Loading…
Reference in a new issue