Skip to content

Commit

Permalink
ci: use matrix for different platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
WerySkok committed Nov 4, 2024
1 parent f25459f commit 89c0137
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ env:

jobs:
build:
strategy:
matrix:
platform: [amd64, arm64]

runs-on: ubuntu-latest

if: github.event_name == 'push'
Expand Down Expand Up @@ -73,7 +77,7 @@ jobs:
- name: Build base image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
platforms: linux/${{matrix.platform}}
file: install/automated/docker/openvk.Dockerfile
tags: ${{ steps.basemeta.outputs.tags }}
labels: ${{ steps.basemeta.outputs.labels }}
Expand All @@ -83,7 +87,7 @@ jobs:
- name: Build MariaDB primary image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
platforms: linux/${{matrix.platform}}
file: install/automated/docker/mariadb-primary.Dockerfile
tags: ${{ steps.db-primarymeta.outputs.tags }}
labels: ${{ steps.db-primarymeta.outputs.labels }}
Expand All @@ -93,7 +97,7 @@ jobs:
- name: Build MariaDB event image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
platforms: linux/${{matrix.platform}}
file: install/automated/docker/mariadb-eventdb.Dockerfile
tags: ${{ steps.db-eventmeta.outputs.tags }}
labels: ${{ steps.db-eventmeta.outputs.labels }}
Expand Down

0 comments on commit 89c0137

Please sign in to comment.