Skip to content

Commit

Permalink
ci: add -arm suffix to arm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Jan 8, 2025
1 parent c87394b commit 4dbf4a8
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 150 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/push-frontends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [blacksmith-2vcpu-ubuntu-2204, blacksmith-2vcpu-ubuntu-2204-arm]
platform: [linux/amd64, linux/arm64]
exclude:
include:
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
- runner: blacksmith-2vcpu-ubuntu-2204-arm
platform: linux/amd64
tag: latest
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
tag: latest-arm
suffix: -arm
steps:
- name: Checkout the repo
uses: actions/checkout@v4
Expand All @@ -54,8 +55,8 @@ jobs:
images: |
trieve/chat
tags: |
type=raw,latest
type=sha
type=raw,${{matrix.tag}}
type=sha,suffix=${{matrix.suffix}}
- name: Build and push Docker image
uses: useblacksmith/[email protected]
Expand All @@ -72,13 +73,14 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [blacksmith-2vcpu-ubuntu-2204, blacksmith-2vcpu-ubuntu-2204-arm]
platform: [linux/amd64, linux/arm64]
exclude:
include:
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
- runner: blacksmith-2vcpu-ubuntu-2204-arm
platform: linux/amd64
tag: latest
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
tag: latest-arm
suffix: -arm
steps:
- name: Checkout the repo
uses: actions/checkout@v4
Expand All @@ -103,8 +105,8 @@ jobs:
images: |
trieve/search
tags: |
type=raw,latest
type=sha
type=raw,${{matrix.tag}}
type=sha,suffix=${{matrix.suffix}}
- name: Build and push Docker image
uses: useblacksmith/[email protected]
Expand All @@ -121,13 +123,14 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [blacksmith-2vcpu-ubuntu-2204, blacksmith-2vcpu-ubuntu-2204-arm]
platform: [linux/amd64, linux/arm64]
exclude:
include:
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
- runner: blacksmith-2vcpu-ubuntu-2204-arm
platform: linux/amd64
tag: latest
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
tag: latest-arm
suffix: -arm
steps:
- name: Checkout the repo
uses: actions/checkout@v4
Expand All @@ -152,8 +155,8 @@ jobs:
images: |
trieve/dashboard
tags: |
type=raw,latest
type=sha
type=raw,${{matrix.tag}}
type=sha,suffix=${{matrix.suffix}}
- name: Build and push Docker image
uses: useblacksmith/[email protected]
Expand Down
Loading

0 comments on commit 4dbf4a8

Please sign in to comment.