Skip to content

Commit afba2fe

Browse files
committed
chore: use arm running for building arm image
1 parent 25b7366 commit afba2fe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ env:
1414
jobs:
1515
build:
1616
name: Build Docker Image (${{ matrix.platform }})
17-
runs-on: ubuntu-latest
17+
runs-on: ${{ matrix.runner }}
1818
strategy:
1919
matrix:
20-
platform: [linux/amd64, linux/arm64]
20+
include:
21+
- platform: linux/amd64
22+
runner: ubuntu-latest
23+
- platform: linux/arm64
24+
runner: ubuntu-24.04-arm
2125
permissions:
2226
contents: read
2327
packages: write
@@ -51,8 +55,8 @@ jobs:
5155
labels: |
5256
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
5357
org.opencontainers.image.revision=${{ github.sha }}
54-
cache-from: type=gha
55-
cache-to: type=gha,mode=max
58+
cache-from: type=gha,scope=${{ matrix.platform }}
59+
cache-to: type=gha,mode=max,scope=${{ matrix.platform }}
5660
platforms: ${{ matrix.platform }}
5761
provenance: false
5862

0 commit comments

Comments
 (0)