try with matrix build

This commit is contained in:
cupcakearmy 2022-11-02 13:34:41 +01:00
parent 9d787008a4
commit 3d4fef7c23
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F

View File

@ -9,6 +9,9 @@ on:
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
arch: ["linux/amd64", "linux/arm64"]
steps: steps:
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
@ -34,7 +37,7 @@ jobs:
id: docker_build id: docker_build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
platforms: linux/amd64,linux/arm64 platforms: ${{ matrix.arch }}
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
- name: Image digest - name: Image digest