Skip to content

Commit b83c3ab

Browse files
author
Omri Hopson
committed
Added docker/setup-qemu-action@v3 to enable cross-platform builds. QEMU allows building ARM64 images on AMD64 runners
1 parent 716c69c commit b83c3ab

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/ci-dev.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
timeout-minutes: 10
10+
timeout-minutes: 30
1111

1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v3
18+
1619
- name: Set up Docker Buildx
1720
uses: docker/setup-buildx-action@v4
1821

@@ -39,4 +42,6 @@ jobs:
3942
push: true
4043
tags: ${{ steps.meta.outputs.tags }}
4144
labels: ${{ steps.meta.outputs.labels }}
42-
platforms: linux/amd64
45+
platforms: linux/amd64,linux/arm64
46+
cache-from: type=gha
47+
cache-to: type=gha,mode=max

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
timeout-minutes: 10
11+
timeout-minutes: 30
1212

1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v3
19+
1720
- name: Set up Docker Buildx
1821
uses: docker/setup-buildx-action@v4
1922

@@ -42,4 +45,6 @@ jobs:
4245
push: true
4346
tags: ${{ steps.meta.outputs.tags }}
4447
labels: ${{ steps.meta.outputs.labels }}
45-
platforms: linux/amd64
48+
platforms: linux/amd64,linux/arm64
49+
cache-from: type=gha
50+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)