chore: use matrix for docker image building

This commit is contained in:
mzz 2023-03-14 01:34:47 +08:00 committed by GitHub
parent a7eece0887
commit f0c758a89a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,9 @@ jobs:
tag: ${{ github.ref }}
docker:
strategy:
matrix:
platform: [ linux/arm, linux/arm64, linux/amd64 ]
runs-on: ubuntu-22.04
steps:
- name: Checkout codebase
@ -173,7 +176,7 @@ jobs:
context: .
builder: ${{ steps.buildx.outputs.name }}
file: Dockerfile
platforms: linux/arm,linux/arm64,linux/amd64
platforms: ${{ matrix.platform }}
push: true
tags: |
${{ steps.prep.outputs.IMAGE }}:${{ steps.prep.outputs.TAG }}