Skip to content

Release UBI

Release UBI #4

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
required: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
id: buildx
- name: Login DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish multi-arch Docker image
uses: docker/build-push-action@v5
with:
push: true
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
build-args: |
MXS_VERSION=${{ github.event.inputs.version }}
# TODO: linux/arm64
platforms: linux/amd64
# TODO: point to mariadb/maxscale
tags: |
mariadbmmontes/enterprise-server:${{ github.event.inputs.version }}-ubi
labels: |
org.opencontainers.image.title=MariaDB MaxScale
org.opencontainers.image.description=MariaDB MaxScale is a database proxy that extends the high availability, scalability, and security of MariaDB Server
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${{ github.event.inputs.version }}
- name: Preflight image
run: make preflight-image-submit
env:
# TODO: point to mariadb/maxscale
IMAGE_NAME: mariadbmmontes/enterprise-server
MXS_VERSION: ${{ github.event.inputs.version }}
REDHAT_API_KEY: "${{ secrets.REDHAT_API_KEY }}"
REDHAT_PROJECT_ID: "${{ secrets.REDHAT_PROJECT_ID }}"