mirror of
https://github.com/openvk/openvk
synced 2025-01-31 03:55:27 +03:00
ci(actions): unparallel builds (#1217)
this should fix linux/amd64 showing up as unknown/unknown on ghcr
This commit is contained in:
parent
b713c964a3
commit
7fe0c6a122
1 changed files with 122 additions and 124 deletions
18
.github/workflows/build.yaml
vendored
18
.github/workflows/build.yaml
vendored
|
@ -6,14 +6,11 @@ env:
|
|||
BASE_IMAGE_NAME: openvk
|
||||
DB_IMAGE_NAME: mariadb
|
||||
EVENT_IMAGE_NAME: mariadb
|
||||
DB_VERSION: "10.9"
|
||||
DB_VERSION: '10.9'
|
||||
|
||||
jobs:
|
||||
buildbase:
|
||||
name: Build base images
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [amd64, arm64]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
@ -24,6 +21,8 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Change repository string to lowercase
|
||||
id: repositorystring
|
||||
|
@ -53,7 +52,7 @@ jobs:
|
|||
- name: Build base image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
platforms: linux/${{matrix.platform}}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
file: install/automated/docker/openvk.Dockerfile
|
||||
tags: ${{ steps.basemeta.outputs.tags }}
|
||||
labels: ${{ steps.basemeta.outputs.labels }}
|
||||
|
@ -63,9 +62,6 @@ jobs:
|
|||
|
||||
builddb:
|
||||
name: Build DB images
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [amd64, arm64]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
@ -76,6 +72,8 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Change repository string to lowercase
|
||||
id: repositorystring
|
||||
|
@ -125,7 +123,7 @@ jobs:
|
|||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/${{matrix.platform}}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
file: install/automated/docker/mariadb-primary.Dockerfile
|
||||
tags: ${{ steps.db-primarymeta.outputs.tags }}
|
||||
labels: ${{ steps.db-primarymeta.outputs.labels }}
|
||||
|
@ -136,7 +134,7 @@ jobs:
|
|||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/${{matrix.platform}}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
file: install/automated/docker/mariadb-eventdb.Dockerfile
|
||||
tags: ${{ steps.db-eventmeta.outputs.tags }}
|
||||
labels: ${{ steps.db-eventmeta.outputs.labels }}
|
||||
|
|
Loading…
Reference in a new issue