Skip to content

Commit

Permalink
releaseでmatrixを切り出して、build-argに含められるように
Browse files Browse the repository at this point in the history
Signed-off-by: drumato <[email protected]>
  • Loading branch information
Drumato committed Apr 26, 2024
1 parent ee51574 commit db2cc2f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -32,8 +36,9 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v3
with:
build-args: OYAKI_VERSION=${{ steps.meta.outputs.version }}
build-args:
TARGETARCH=${{ matrix.architecture }}
OYAKI_VERSION=${{ steps.meta.outputs.version }}
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit db2cc2f

Please sign in to comment.