Skip to content

Commit 0b105bd

Browse files
committed
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
1 parent bbf8bb8 commit 0b105bd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish-latest-image.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,25 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
78

89
permissions: write-all
910

1011
jobs:
1112
release:
1213
runs-on: ubuntu-latest
1314

15+
strategy:
16+
matrix:
17+
arch: [linux/amd64, linux/arm64]
18+
1419
env:
1520
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1621

1722
steps:
1823
- uses: actions/checkout@v4
19-
- uses: asdf-vm/actions/install@v3
20-
- run: make publish-image
24+
- uses: docker/setup-qemu-action@v3
25+
- uses: docker/setup-buildx-action@v3
26+
- run: make publish-image
27+
env:
28+
DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }}

0 commit comments

Comments
 (0)