Skip to content

Commit

Permalink
ci(build): Run ARM docker builds on ARM runners (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo authored Dec 10, 2024
1 parent cb648e1 commit 4b9df99
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/build-push-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ permissions:

jobs:
push-api-to-ghcr:
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- platform: linux/amd64
runner: ubuntu-latest
- platform: linux/arm64
runner: ubuntu-arm64-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -48,7 +55,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
tags: |
${{ steps.meta.outputs.tags }}
${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && 'ghcr.io/tracecathq/tracecat:latest' || '' }}
Expand All @@ -57,7 +64,14 @@ jobs:
cache-to: type=gha,mode=max

push-ui-to-ghcr:
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- platform: linux/amd64
runner: ubuntu-latest
- platform: linux/arm64
runner: ubuntu-arm64-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -106,7 +120,7 @@ jobs:
NEXT_SERVER_API_URL=${{ env.NEXT_SERVER_API_URL }}
NODE_ENV=${{ env.NODE_ENV }}
push: true
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && 'ghcr.io/tracecathq/tracecat-ui:latest' || '' }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 4b9df99

Please sign in to comment.