Skip to content

Commit 93cead4

Browse files
committed
ci: enable arm builds for Trieve
1 parent 20e114d commit 93cead4

File tree

2 files changed

+153
-126
lines changed

2 files changed

+153
-126
lines changed

.github/workflows/push-frontends.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ on:
2020
jobs:
2121
build_chat:
2222
name: Push Chat Image
23-
runs-on: blacksmith-2vcpu-ubuntu-2204
23+
runs-on: ${{ matrix.runner }}
24+
strategy:
25+
matrix:
26+
runner: [blacksmith-2vcpu-ubuntu-2204, blacksmith-2vcpu-ubuntu-2204-arm]
27+
platform: [linux/amd64, linux/arm64]
28+
exclude:
29+
- runner: blacksmith-2vcpu-ubuntu-2204
30+
platform: linux/arm64
31+
- runner: blacksmith-2vcpu-ubuntu-2204-arm
32+
platform: linux/amd64
2433
steps:
2534
- name: Checkout the repo
2635
uses: actions/checkout@v4
@@ -51,7 +60,7 @@ jobs:
5160
- name: Build and push Docker image
5261
uses: useblacksmith/[email protected]
5362
with:
54-
# platforms: linux/amd64,linux/arm64
63+
platforms: ${{ matrix.platform }}
5564
file: frontends/chat/Dockerfile
5665
context: .
5766
push: true
@@ -60,7 +69,16 @@ jobs:
6069

6170
build_search:
6271
name: Push Search Image
63-
runs-on: blacksmith-2vcpu-ubuntu-2204
72+
runs-on: ${{ matrix.runner }}
73+
strategy:
74+
matrix:
75+
runner: [blacksmith-2vcpu-ubuntu-2204, blacksmith-2vcpu-ubuntu-2204-arm]
76+
platform: [linux/amd64, linux/arm64]
77+
exclude:
78+
- runner: blacksmith-2vcpu-ubuntu-2204
79+
platform: linux/arm64
80+
- runner: blacksmith-2vcpu-ubuntu-2204-arm
81+
platform: linux/amd64
6482
steps:
6583
- name: Checkout the repo
6684
uses: actions/checkout@v4
@@ -91,7 +109,7 @@ jobs:
91109
- name: Build and push Docker image
92110
uses: useblacksmith/[email protected]
93111
with:
94-
# platforms: linux/amd64,linux/arm64
112+
platforms: ${{ matrix.platform }}
95113
file: frontends/search/Dockerfile
96114
context: .
97115
push: true
@@ -100,7 +118,16 @@ jobs:
100118

101119
build_dashboard:
102120
name: Push Dashboard Image
103-
runs-on: blacksmith-2vcpu-ubuntu-2204
121+
runs-on: ${{ matrix.runner }}
122+
strategy:
123+
matrix:
124+
runner: [blacksmith-2vcpu-ubuntu-2204, blacksmith-2vcpu-ubuntu-2204-arm]
125+
platform: [linux/amd64, linux/arm64]
126+
exclude:
127+
- runner: blacksmith-2vcpu-ubuntu-2204
128+
platform: linux/arm64
129+
- runner: blacksmith-2vcpu-ubuntu-2204-arm
130+
platform: linux/amd64
104131
steps:
105132
- name: Checkout the repo
106133
uses: actions/checkout@v4
@@ -131,7 +158,7 @@ jobs:
131158
- name: Build and push Docker image
132159
uses: useblacksmith/[email protected]
133160
with:
134-
# platforms: linux/amd64,linux/arm64
161+
platforms: ${{ matrix.platform }}
135162
file: frontends/dashboard/Dockerfile
136163
context: .
137164
push: true

0 commit comments

Comments
 (0)