Skip to content

Commit

Permalink
Update GitHub Actions for multi-platform architecture support
Browse files Browse the repository at this point in the history
- Refactor build workflow for multiple architectures
- Switch to using matrix strategy for different architectures
- Update setup to utilize Docker actions for better compatibility
  • Loading branch information
johnnyhuy committed Apr 21, 2024
1 parent bbf8bb8 commit 0b105bd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish-latest-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,25 @@ on:
push:
branches:
- main
workflow_dispatch:

permissions: write-all

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
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- run: make publish-image
env:
DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }}

0 comments on commit 0b105bd

Please sign in to comment.