Skip to content

Commit

Permalink
chore(ci): use arm64 runners (#510)
Browse files Browse the repository at this point in the history
* chore(ci): use ARM runners for ARM builds

* chore(ci): trigger CI on CI changes
  • Loading branch information
corrieriluca authored Jan 17, 2025
1 parent e8ea712 commit cb02ead
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform.runner }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
- name: linux/amd64
runner: ubuntu-latest
- name: linux/arm64
runner: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Prepare
run: |
platform=${{ matrix.platform }}
platform=${{ matrix.platform.name }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Get Build timestamp and branch name
Expand Down Expand Up @@ -63,7 +65,7 @@ jobs:
id: build
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
platforms: ${{ matrix.platform.name }}
build-args: |
VERSION=${{ env.VERSION }}
BUILD_TIMESTAMP=${{ env.BUILD_TIMESTAMP }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- main
paths:
- ".github/workflows/ci-frontend.yaml"
- "ui/**"

env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- main
paths:
- ".github/workflows/build-and-push.yaml"
- ".github/workflows/ci.yaml"
- "**.go"
- "go.mod"
- "go.sum"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- main
paths:
- ".github/workflows/docs.yaml"
- "docs/**"

permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
branches:
- main
paths:
- ".github/workflows/helm.yaml"
- "deploy/charts/**"

env:
Expand Down

0 comments on commit cb02ead

Please sign in to comment.