From 0b105bd32095677b8e49c05d0e723cf4e68fc169 Mon Sep 17 00:00:00 2001 From: Johnny Huynh <27847622+johnnyhuy@users.noreply.github.com> Date: Sun, 21 Apr 2024 10:50:16 +1000 Subject: [PATCH] Update GitHub Actions for multi-platform architecture support - Refactor build workflow for multiple architectures - Switch to using matrix strategy for different architectures - Update setup to utilize Docker actions for better compatibility --- .github/workflows/publish-latest-image.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-latest-image.yaml b/.github/workflows/publish-latest-image.yaml index 0bfb30e..689784e 100644 --- a/.github/workflows/publish-latest-image.yaml +++ b/.github/workflows/publish-latest-image.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + workflow_dispatch: permissions: write-all @@ -11,10 +12,17 @@ jobs: release: runs-on: ubuntu-latest + strategy: + matrix: + arch: [linux/amd64, linux/arm64] + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 - - uses: asdf-vm/actions/install@v3 - - run: make publish-image \ No newline at end of file + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 + - run: make publish-image + env: + DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} \ No newline at end of file