Skip to content

Commit ffdb349

Browse files
authored
Build dev images for ARM64 as well
1 parent 553d380 commit ffdb349

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/dev-build.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
build-frontend-amd64:
16-
name: Build Frontend AMD64 (dev)
15+
build-frontend:
16+
name: Build Frontend Multi-Arch (dev)
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121

22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
2225
- name: Set up Docker Buildx
2326
uses: docker/setup-buildx-action@v3
2427

@@ -28,27 +31,30 @@ jobs:
2831
username: ${{ secrets.DOCKERHUB_USERNAME }}
2932
password: ${{ secrets.DOCKERHUB_TOKEN }}
3033

31-
- name: Build and push Frontend AMD64 (dev)
34+
- name: Build and push Frontend Multi-Arch (dev)
3235
uses: docker/build-push-action@v5
3336
with:
3437
context: .
3538
file: frontend/Dockerfile
36-
platforms: linux/amd64
39+
platforms: linux/amd64,linux/arm64
3740
push: true
3841
build-args: |
3942
VERSION=${{ env.DEV_VERSION }}
4043
tags: |
4144
${{ env.DOCKERHUB_FRONTEND_IMAGE }}:${{ env.DEV_VERSION }}
42-
cache-from: type=gha,scope=dev-frontend-amd64
43-
cache-to: type=gha,mode=max,scope=dev-frontend-amd64
45+
cache-from: type=gha,scope=dev-frontend-multiarch
46+
cache-to: type=gha,mode=max,scope=dev-frontend-multiarch
4447

45-
build-backend-native-amd64:
46-
name: Build Backend Native AMD64 (dev)
48+
build-backend-native:
49+
name: Build Backend Native Multi-Arch (dev)
4750
runs-on: ubuntu-latest
4851
steps:
4952
- name: Checkout code
5053
uses: actions/checkout@v4
5154

55+
- name: Set up QEMU
56+
uses: docker/setup-qemu-action@v3
57+
5258
- name: Set up Docker Buildx
5359
uses: docker/setup-buildx-action@v3
5460

@@ -58,17 +64,17 @@ jobs:
5864
username: ${{ secrets.DOCKERHUB_USERNAME }}
5965
password: ${{ secrets.DOCKERHUB_TOKEN }}
6066

61-
- name: Build and push Backend Native AMD64 (dev)
67+
- name: Build and push Backend Native Multi-Arch (dev)
6268
uses: docker/build-push-action@v5
6369
with:
6470
context: .
6571
file: backend/Dockerfile.native
66-
platforms: linux/amd64
72+
platforms: linux/amd64,linux/arm64
6773
push: true
6874
build-args: |
6975
VERSION=${{ env.DEV_VERSION }}-native
7076
QUARKUS_NATIVE_BUILD_ARGS=
7177
tags: |
7278
${{ env.DOCKERHUB_BACKEND_IMAGE }}:${{ env.DEV_VERSION }}-native
73-
cache-from: type=gha,scope=dev-backend-native-amd64
74-
cache-to: type=gha,mode=max,scope=dev-backend-native-amd64
79+
cache-from: type=gha,scope=dev-backend-native-multiarch
80+
cache-to: type=gha,mode=max,scope=dev-backend-native-multiarch

0 commit comments

Comments
 (0)