Skip to content

Commit

Permalink
Fix arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi authored Sep 9, 2024
1 parent 2a2aa9c commit c1ddf56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/builddockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
arch: ["arm", "x86"]
arch: ["arm64", "amd64"]
permissions:
contents: read
packages: write
Expand All @@ -33,13 +33,14 @@ jobs:
env:
CGO_ENABLED: 0
GOOS: linux
GOARCH: ${{ matrix.arch == 'arm' && 'aarch64' || 'amd64' }}
GOARCH: ${{ matrix.arch }}
run: go build cmd/service/main.go
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- uses: docker/setup-qemu-action@v3
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
Expand All @@ -60,7 +61,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ matrix.arch == 'arm' && 'linux/arm64' || 'linux/amd64' }}
platforms: linux/${{ matrix.arch }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Sign the published Docker image
Expand Down

0 comments on commit c1ddf56

Please sign in to comment.