From a4ccb1d02b26333fd8a0e79de77bd4c39327ede2 Mon Sep 17 00:00:00 2001 From: rayanebel Date: Thu, 9 Jan 2025 11:46:18 +0100 Subject: [PATCH] chore: update build workflow --- .github/workflows/release.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c2552e8..a245b18 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -76,7 +76,6 @@ jobs: echo "ARCH=${ARCH_NAME}" echo "ARCH2=${{ env.ARCH_NAME}}" - echo "output_dir=${OUTPUT_DIR}" >> $GITHUB_OUTPUT mkdir -p ${OUTPUT_DIR} @@ -103,7 +102,14 @@ jobs: images: needs: binaries - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + arch: + - amd64 + - arm64 + runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -132,8 +138,10 @@ jobs: org.opencontainers.image.name=${{ env.IMAGE_NAME }} org.opencontainers.image.version=${{ github.ref_name }} org.opencontainers.image.authors=contact@kiln.fi - platforms: linux/amd64,linux/arm64 + platforms: linux/${{matrix.arch}} push: true + cache-from: type=gha + cache-to: type=gha,mode=max tags: |- ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest