forked from mariadb-corporation/maxscale-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 2 KB
/
release.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
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 }}"