Skip to content

Commit cb02ead

Browse files
authored
chore(ci): use arm64 runners (#510)
* chore(ci): use ARM runners for ARM builds * chore(ci): trigger CI on CI changes
1 parent e8ea712 commit cb02ead

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@ permissions:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.platform.runner }}
1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
platform:
19-
- linux/amd64
20-
- linux/arm64
19+
- name: linux/amd64
20+
runner: ubuntu-latest
21+
- name: linux/arm64
22+
runner: ubuntu-24.04-arm
2123
steps:
2224
- name: Checkout
2325
uses: actions/checkout@v4
2426

2527
- name: Prepare
2628
run: |
27-
platform=${{ matrix.platform }}
29+
platform=${{ matrix.platform.name }}
2830
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
2931
3032
- name: Get Build timestamp and branch name
@@ -63,7 +65,7 @@ jobs:
6365
id: build
6466
uses: docker/build-push-action@v6
6567
with:
66-
platforms: ${{ matrix.platform }}
68+
platforms: ${{ matrix.platform.name }}
6769
build-args: |
6870
VERSION=${{ env.VERSION }}
6971
BUILD_TIMESTAMP=${{ env.BUILD_TIMESTAMP }}

.github/workflows/ci-frontend.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches:
99
- main
1010
paths:
11+
- ".github/workflows/ci-frontend.yaml"
1112
- "ui/**"
1213

1314
env:

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- main
1010
paths:
11+
- ".github/workflows/build-and-push.yaml"
12+
- ".github/workflows/ci.yaml"
1113
- "**.go"
1214
- "go.mod"
1315
- "go.sum"

.github/workflows/docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches:
88
- main
99
paths:
10+
- ".github/workflows/docs.yaml"
1011
- "docs/**"
1112

1213
permissions:

.github/workflows/helm.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
branches:
1111
- main
1212
paths:
13+
- ".github/workflows/helm.yaml"
1314
- "deploy/charts/**"
1415

1516
env:

0 commit comments

Comments
 (0)