mirror of
https://github.com/openvk/openvk
synced 2024-11-15 03:31:18 +03:00
ci: use matrix for different platforms
This commit is contained in:
parent
f25459fca3
commit
89c013729f
1 changed files with 7 additions and 3 deletions
10
.github/workflows/build.yaml
vendored
10
.github/workflows/build.yaml
vendored
|
@ -11,6 +11,10 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [amd64, arm64]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
@ -73,7 +77,7 @@ jobs:
|
||||||
- name: Build base image
|
- name: Build base image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/${{matrix.platform}}
|
||||||
file: install/automated/docker/openvk.Dockerfile
|
file: install/automated/docker/openvk.Dockerfile
|
||||||
tags: ${{ steps.basemeta.outputs.tags }}
|
tags: ${{ steps.basemeta.outputs.tags }}
|
||||||
labels: ${{ steps.basemeta.outputs.labels }}
|
labels: ${{ steps.basemeta.outputs.labels }}
|
||||||
|
@ -83,7 +87,7 @@ jobs:
|
||||||
- name: Build MariaDB primary image
|
- name: Build MariaDB primary image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/${{matrix.platform}}
|
||||||
file: install/automated/docker/mariadb-primary.Dockerfile
|
file: install/automated/docker/mariadb-primary.Dockerfile
|
||||||
tags: ${{ steps.db-primarymeta.outputs.tags }}
|
tags: ${{ steps.db-primarymeta.outputs.tags }}
|
||||||
labels: ${{ steps.db-primarymeta.outputs.labels }}
|
labels: ${{ steps.db-primarymeta.outputs.labels }}
|
||||||
|
@ -93,7 +97,7 @@ jobs:
|
||||||
- name: Build MariaDB event image
|
- name: Build MariaDB event image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/${{matrix.platform}}
|
||||||
file: install/automated/docker/mariadb-eventdb.Dockerfile
|
file: install/automated/docker/mariadb-eventdb.Dockerfile
|
||||||
tags: ${{ steps.db-eventmeta.outputs.tags }}
|
tags: ${{ steps.db-eventmeta.outputs.tags }}
|
||||||
labels: ${{ steps.db-eventmeta.outputs.labels }}
|
labels: ${{ steps.db-eventmeta.outputs.labels }}
|
||||||
|
|
Loading…
Reference in a new issue